フィルターのクリア

Changing y tick values interval

3 ビュー (過去 30 日間)
Yaser Arafath Gulam Dhasthagir
Yaser Arafath Gulam Dhasthagir 2023 年 6 月 25 日
編集済み: Torsten 2023 年 6 月 25 日
Hello,
I have an unwrapped plot of phase which ranges from 360 degrees to -4200 degrees and when i plot it, it was plotted with an interval of yticks values of -500 degrees. I want to change this interval to -360 degrees. How can i do that?
eg: 360,0,-360,-720 ....... -4000 degrees

採用された回答

Torsten
Torsten 2023 年 6 月 25 日
編集済み: Torsten 2023 年 6 月 25 日
fun = @(x)x;
x = -4000:360;
y = fun(x);
plot(x,y)
yticks(fliplr(360:-360:-4000))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by