Azzera filtri
Azzera filtri

All values on the axis

3 visualizzazioni (ultimi 30 giorni)
Anshul Jain
Anshul Jain il 15 Feb 2021
Commentato: Walter Roberson il 15 Feb 2021
Dear Sir,
I have two parameters A and B and both are having 9 values.
I want to plot a 2D plot between them. I have already plotted it but all the values of A (like 0.02, 0.01 etc..) are not showing on the X-axis (File attached)
The coding I am using for it is as follows:
getplot('F1:G10');
function getplot(st)
T = readtable('Book2.xlsx', 'Sheet',1, 'Range',st);
T = table2array(T);
Tolerance=T(:,1);
Error=T(:,2);
plot(Tolerance,Error,'*-g');
xlabel('Tolerance(mm)');
ylabel('Errors(mm)');
end
Kindly let me know how to get all the values of A on X-axis.
Thanks in advance

Risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by