필터 지우기
필터 지우기

Precipitation plot for a specific time

조회 수: 3 (최근 30일)
danel james
danel james 2022년 7월 28일
댓글: danel james 2022년 7월 28일
Hello,
i want to generate a plot like the one atatched, and it must be for a specific time for all latitudes. say time t=1:00 or 6:30 but for all latitudes.
thank you in advance

채택된 답변

KSSV
KSSV 2022년 7월 28일
If you want it for all latitudes at a given time, then you have to fix one longitude. You can extract at a given time, at a fixed lontitude for all the latitudes.
EXample:
[X,Y,Z] = peaks(50) ;
x = X(1,:) ;
y = Y(:,1) ;
% get plot for all y's and at x = 0 ;
yi = y ;
xi = repmat(0,size(yi)) ;
zi = interp2(X,Y,Z,xi,yi) ; % you can use knnsearch too
figure
plot(yi,zi) % curve plot
figure
% plot the curve on the surf
surf(X,Y,Z)
hold on
plot3(xi,yi,zi,'k','linewidth',5)
  댓글 수: 5
KSSV
KSSV 2022년 7월 28일
This not a deal. you need to arrange your data. Attach your data.
danel james
danel james 2022년 7월 28일
Thank you so much! you made may day :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by