フィルターのクリア

Converting 0 to Nan in Timetable

7 ビュー (過去 30 日間)
Benedikt Skurk
Benedikt Skurk 2021 年 5 月 19 日
コメント済み: Benedikt Skurk 2021 年 5 月 19 日
Hello,
is it possible to change 0 to Nan in a timetable for every column? A cutout of the timetable is attached.
I couldnt find any solution for that, i am pretty new to Matlab. The reason why i want this, is that i dont want to plot the 0, so they will be "skipped".
Thanks for the help!!

採用された回答

KSSV
KSSV 2021 年 5 月 19 日
If T is your table .. to convert zeros in column 3 into NaN use:
T.(3)(T.(3)==0) = NaN ;
  1 件のコメント
Benedikt Skurk
Benedikt Skurk 2021 年 5 月 19 日
Thanks for the help!!

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

その他の回答 (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