Hi Guys,(adsbygoogle = window.adsbygoogle || []).push({});

I currently have the following plot which plots the height of the fluid surface at each time step in a 3d view and a 2d view. The program runs in time steps of 0.0067 up to 5 seconds. Can anybody tell me how i can just view the plots at certain times such as t=1, t=2 t=3 etc? Thanks. James.

subplot(2,1,1)

%surf(x0(1:125),y0(1:50),rho(:,1:125));

mesh(rho+z);

shading interp

view(33,15)

% axis([0 30 0 10 8.5 11]);

pause(0.1);

subplot(2,1,2)

plot(rho(end/2,

title(['time = ',num2str(t),' seconds'])

pause(0.1);

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab - Plotting graphs for set points in time.

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for Matlab Plotting graphs |
---|

Binary bitstream from QPSK with MATLAB? |

Python How can I run Python by getting values from Matlab |

What is each step of this Matlab program doing? |

C/++/# Help with MATLAB code? |

Numerical Integration with variable limits MATLAB |

**Physics Forums | Science Articles, Homework Help, Discussion**