Plot Y axis with 1x unit

5 次查看(过去 30 天)
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
yticks(floor(min(y)):ceil(max(y)))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-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