フィルターのクリア

All values on the axis

3 ビュー (過去 30 日間)
Anshul Jain
Anshul Jain 2021 年 2 月 15 日
コメント済み: Walter Roberson 2021 年 2 月 15 日
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 件のコメント
Walter Roberson
Walter Roberson 2021 年 2 月 15 日
xticks(Tolerance)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by