Matrix element deletion for elements greater than an integer

조회 수: 1 (최근 30일)
Andrew Wileman
Andrew Wileman 2016년 6월 22일
댓글: John D'Errico 2016년 6월 22일
Hi, I hope someone may be able to answer this problem. I have an matrix of temperatures 1001 x 200. What I would like to do is remove single elements of the matrix greater than a specific temperature (I'm assuming they have vaporized), and then plot the same size matrix with the deleted elements. Is there a way of doing this? Thanks, Andy

채택된 답변

John D'Errico
John D'Errico 2016년 6월 22일
T(T>Tmax) = NaN;
  댓글 수: 2
Andrew Wileman
Andrew Wileman 2016년 6월 22일
Thanks John, I'll give it a try.
John D'Errico
John D'Errico 2016년 6월 22일
Tools like plot or surf don't plot NaNs.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by