Converting 0 to Nan in Timetable
7 次查看(过去 30 天)
显示 更早的评论
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!!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/623138/image.png)
0 个评论
采纳的回答
KSSV
2021-5-19
If T is your table .. to convert zeros in column 3 into NaN use:
T.(3)(T.(3)==0) = NaN ;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!