Recomendation on plotting data
1 次查看(过去 30 天)
显示 更早的评论
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
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
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 个评论
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(:))
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!