Filter löschen
Filter löschen

All values on the axis

3 Ansichten (letzte 30 Tage)
Anshul Jain
Anshul Jain am 15 Feb. 2021
Kommentiert: Walter Roberson am 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

Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by