Getting zeros when empty

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!

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 2 月 18 日

0 投票

You cannot do that using dlmread(). Use readmatrix() or readtable() or textscan()

1 件のコメント

ARAR
ARAR 2021 年 2 月 20 日
thank you. i did use NaNs and that worked for my purpose too

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

カテゴリ

ヘルプ センター および File ExchangeCell Arrays についてさらに検索

タグ

質問済み:

2021 年 2 月 18 日

コメント済み:

2021 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by