Precipitation plot for a specific time

1 view (last 30 days)
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

Accepted Answer

KSSV on 28 Jul 2022
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.
[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
plot(yi,zi) % curve plot
% plot the curve on the surf
hold on
danel james
danel james on 28 Jul 2022
Thank you so much! you made may day :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!