Plot Y axis with 1x unit

조회 수: 6 (최근 30일)
neda fathi
neda fathi 2022년 9월 19일
댓글: neda fathi 2022년 9월 19일
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)))
  댓글 수: 1
neda fathi
neda fathi 2022년 9월 19일
Great! Many thanks

댓글을 달려면 로그인하십시오.

추가 답변 (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