フィルターのクリア

How to get plot to show exactly the x-axis range desired?

1 回表示 (過去 30 日間)
EllaD
EllaD 2021 年 6 月 7 日
編集済み: EllaD 2021 年 6 月 7 日
Hello
My question might be a bit odd but I have used plot in matlab and obtained some figures. The ones that I have obtained look something like this:
Which as it can be seen, it covers competely the x-axis and shows the x-axis only for the desired values.
Now I am plotting the same function but varying another variable which is
tau1=0.01:0.01:0.10
when plotting the figure I get:
How can I get rid of the extra space in the x-axis where my function has no values?
Thanks!

採用された回答

Walter Roberson
Walter Roberson 2021 年 6 月 7 日
xlim([min(tau1), max(tau1)])
  1 件のコメント
EllaD
EllaD 2021 年 6 月 7 日
Thank you so much! It works :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by