Setting Limits to end of table Variable

2 ビュー (過去 30 日間)
Thallon Pitchure
Thallon Pitchure 2020 年 9 月 17 日
コメント済み: Thallon Pitchure 2020 年 9 月 17 日
Hello,
My question for you today is that I have a table with the variable time and the timer for my table runs until mid 60 units. When I plot the figue with time as the x-axis it the table runs from 0 to 70.
I know that I can set my xlim([ ]) but how would I streamline this to plot to the end time variable instead of rounding up. I have two .xlsx files that I am using in one script so I would like to make the code tailor to each table without having to specify each end time.
If you could please provide any assistance I would greatly appreciate it.
Thank you

回答 (1 件)

Steven Lord
Steven Lord 2020 年 9 月 17 日
Use bounds and/or min and max on your time data to find the tight bounds and use those with xlim to adjust the limits.
  1 件のコメント
Thallon Pitchure
Thallon Pitchure 2020 年 9 月 17 日
Oh yeah
Thank you for the help!!

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by