Info

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

Which function should I use to plot 2-D color figures out of a XYZ grid data results?

조회 수: 1 (최근 30일)
Leon
Leon 2014년 1월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
Below is my code:
[X, Y] = meshgrid(110:0.5:300, -80:0.5:60);
z_grid = griddata (double(lon), double(lat), double(z), X, Y);
So after I finish griding my data, which command I should use to plot a 2-D figure of the z_grid (X, Y are longitude and latitude, respectively) using color scales. I was trying to use "scatter", but after I extract a 3-column data out of the grid and then use "scatter", it drains too much resources for my computer to handle.
Thank you.

답변 (1개)

Paul
Paul 2014년 1월 13일
Have you tried imagesc?
  댓글 수: 3
Paul
Paul 2014년 1월 13일
X and Y should be vectors in imagesc. Use X_vec=110:0.5:300; and Y_vec=-80:0.5:60. Arag_grid should be a matrix of the values at each point.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by