Effacer les filtres
Effacer les filtres

Converting 0 to Nan in Timetable

7 vues (au cours des 30 derniers jours)
Benedikt Skurk
Benedikt Skurk le 19 Mai 2021
Commenté : Benedikt Skurk le 19 Mai 2021
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!!

Réponse acceptée

KSSV
KSSV le 19 Mai 2021
If T is your table .. to convert zeros in column 3 into NaN use:
T.(3)(T.(3)==0) = NaN ;
  1 commentaire
Benedikt Skurk
Benedikt Skurk le 19 Mai 2021
Thanks for the help!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by