Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Create plot and pass some data

조회 수: 2 (최근 30일)
Sofia Fourkioti
Sofia Fourkioti 2017년 11월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi ! I want to create a scatter plot but not to include all of the data. I use data from a spreadsheet and some of the values represent errors(for example 9999,-2112,1014 etc) and as a result I want to exlude them. Can I use any kind of filters to do that? I tried this : x(x==-1)=NaN; . The result doesn't seem right. I want to include the values of GHIGHIclear between 0 and 1,5(or 2).Please help!
  댓글 수: 1
Jan
Jan 2017년 11월 12일
Please provide any details, e.g. the used code as text (and not as screen shot) and the dimensions of the input. "doesn't seem right" is not useful also: Why not? What exactly does "between 0 and 1,5(or 2)" mean?

답변 (1개)

Jan
Jan 2017년 11월 12일
Perhaps:
match = (0 <= GHIGHIclear && GHIGHIclear <= 2);
GHIGHIclear = GHIGHIclear(match);

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by