How to plot a transient response using scatter interpolant?

조회 수: 1 (최근 30일)
Chaoran Li
Chaoran Li 2014년 4월 1일
I've used the following code to plot a 2D surface plot of the steady state pressure distribution on a square surface.
figure;
yi=0:5:175;
zi=0:5:440;
[Yi,Zi]=meshgrid(yi,zi);
P=scatteredInterpolant(y1335_complete,z,Cp_rear_complete, 'natural', 'linear');
Pi=P(Yi,Zi);
pcolor(Yi,Zi,Pi)
shading interp
colorbar Eastoutside
caxis([-0.3, 0.1])
hold on
plot(y1335_complete,z,'.k')
title ('Rear of the Train')
Now that I have instantaneous pressure distribution at every 0.002 of a second. How do I do a transient plot where the 2D contour will change according to time?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by