How can I plot with a different axe
2 ビュー (過去 30 日間)
古いコメントを表示
Hi ,
I have the following code and I am trying to plot A . I get a plot with an x-axe from 1 to 40 .
s = linspace (-1,1,40);
A : 40x20x20 double %A matrix
plot(A(:,15,10))
How can I modify my code to get a plot with an x-achse from -1 to 1 ?
0 件のコメント
採用された回答
その他の回答 (1 件)
Jeffrey Eymer
2018 年 6 月 14 日
1 件のコメント
Walter Roberson
2018 年 6 月 14 日
Not in this case. The user was not passing in an x variable, so plot assumes 1 : size(A,1) should be used.
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!