change start point of plot
11 ビュー (過去 30 日間)
古いコメントを表示
Nurul Ain Basirah Zakaria
2021 年 2 月 16 日
回答済み: Cris LaPierre
2021 年 3 月 3 日
Hi how can I change the Jan to start at 0?
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!