How to plot a transient response using scatter interpolant?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!