Effacer les filtres
Effacer les filtres

All values on the axis

3 vues (au cours des 30 derniers jours)
Anshul Jain
Anshul Jain le 15 Fév 2021
Commenté : Walter Roberson le 15 Fév 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
  1 commentaire
Walter Roberson
Walter Roberson le 15 Fév 2021
xticks(Tolerance)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by