Getting zeros when empty

조회 수: 8 (최근 30일)
ARAR
ARAR 2021년 2월 18일
댓글: ARAR 2021년 2월 20일
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일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by