필터 지우기
필터 지우기

Recomendation on plotting data

조회 수: 1 (최근 30일)
Jaime  de la Mota
Jaime de la Mota 2017년 5월 17일
댓글: Walter Roberson 2017년 5월 18일
I have a 360x180 matrix with data for each latitude and longitude on earth, I plot it like this:
imagescnan(loni,lati,squeeze(double(r4_sat(:,:)))')
I have another matrix with the same dimensions but only data on the points in which it is significative; I want to mark the locations on the map plotted earlier in which the data is significative but I don't know how.
Any sugestion helps Thanks for reading
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 5월 18일
Note:
imagescnan(loni,lati,squeeze(double(r4_sat(:,:)))')
should be the same as
imagescnan( loni, lati, double(r4_sat).' )

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 5월 18일
imagescnan( loni, lati, double(r4_sat).' );
hold on
threshold = 0.05; %for example
mask = double(r4_sat > threshold); %was it significant?
mask(mask == 0) = nan; %1 if significant, nan if not
imagescnan( loni, lati, mask.' );
  댓글 수: 2
Jaime  de la Mota
Jaime de la Mota 2017년 5월 18일
I'm afraid the code doesn't work; I have tried using
quiver(lati, loni, r4_sat_significative, r4_sat_significative)
but it fails too, seems like it has dimensions problems
Walter Roberson
Walter Roberson 2017년 5월 18일
Please show size(loni), size(lati), size(r4_sat), size(r4_sat_significative), class(r4_sat_significative), max(r4_sat_significative(:))

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

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by