change start point of plot

11 ビュー (過去 30 日間)
Nurul Ain Basirah Zakaria
Nurul Ain Basirah Zakaria 2021 年 2 月 16 日
回答済み: Cris LaPierre 2021 年 3 月 3 日
Hi how can I change the Jan to start at 0?

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 3 月 3 日
You can change the first point's y value from 105 to 0.
d=datetime(2020,1,1):calmonths:datetime(2020,12,1);
y = randi(160,[1,12])+100;
M = month(d,'shortname');
plot(categorical(M,M),y)
% change the first point to 0
y(1)=0;
plot(categorical(M,M),y)

その他の回答 (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