How to plot a transient response using scatter interpolant?
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!