Getting zeros when empty

8 Ansichten (letzte 30 Tage)
ARAR
ARAR am 18 Feb. 2021
Kommentiert: ARAR am 20 Feb. 2021
Hi, I am plotting one particular column from a txt file using dlmread. Whenever there is an empty cell (though other columns do have values), I am getting zero values plotted, even though I do not want them. I would like it to read those cells as 'not existing'. Thank you to anyone who can help!

Antworten (1)

Walter Roberson
Walter Roberson am 18 Feb. 2021
You cannot do that using dlmread(). Use readmatrix() or readtable() or textscan()
  1 Kommentar
ARAR
ARAR am 20 Feb. 2021
thank you. i did use NaNs and that worked for my purpose too

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by