How to set ytickslabel in graph version R2011b

1 回表示 (過去 30 日間)
ly
ly 2017 年 5 月 2 日
回答済み: KL 2017 年 5 月 2 日
Hi,
The graph has ylim([-1 1]) in y axis. Values are displayed -1 -0.5 0 0.5 1 in y axis
How to set ytickslabel in graph like -1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1 in y axis?
Best,

採用された回答

KL
KL 2017 年 5 月 2 日
figure1 = figure;
% Create axes
axes1 = axes('Parent',figure1,...
    'YTick',[-1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1]);
box(axes1,'on');
hold(axes1,'all');
% Create plot
plot(-1:1);

その他の回答 (0 件)

カテゴリ

Help Center および 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