How to make a stem graph to display less points?
3 ビュー (過去 30 日間)
古いコメントを表示
Dear All,
The following code produces the following graphs.
Of course, I do not need the part of the second graph before the point -3. How to cut this part?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1817548/image.png)
2 件のコメント
Walter Roberson
2024 年 12 月 4 日
It is much better to post code as text instead of a picture of code. None of us have a version of MATLAB that is able to run code from pictures.
採用された回答
Image Analyst
2024 年 12 月 4 日
Use axis
% Make t axis go from -3 to the maximum.
axis([-3, max(t)]);
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!