axis X special type
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I would like to construct a graph which has the axis x with values arranged 3, 2, 1, 0, 1, 2, 3, ... (normally, it would be -3 -2 -1 0 1 2 3 .. but I need it as mentioned above). Can anyone help me?
Thank you.
0 件のコメント
採用された回答
the cyclist
2013 年 4 月 23 日
編集済み: the cyclist
2013 年 4 月 23 日
Here's one way.
figure
plot(-3:3,1:7,'.-')
set(gca,'XTickLabel',[3 2 1 0 1 2 3])
Note that I have only changed the label of the axis, but not the values of the plotted points themselves, which still have x values running from -3 to 3.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!