I have a data include 2 columns in excel. I want to plot the first column against the second column with plot command:
plot(data(:,1), data(:,2));
But the plot devides the Y axis in every 2 units (2x), while I need to show 1x in Y axis. How can I specify the unit for Y axis ?

 採用された回答

Walter Roberson
Walter Roberson 2022 年 9 月 19 日

0 投票

yticks(floor(min(y)):ceil(max(y)))

1 件のコメント

neda fathi
neda fathi 2022 年 9 月 19 日
Great! Many thanks

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by