Dismiss Notice
Join Physics Forums Today!
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.

  1. Feb 5, 2009 #1
    Hi Guys,

    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);
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Matlab - Plotting graphs for set points in time.
  1. MATLAB 3D graphs help (Replies: 0)

  2. Matlab floating point (Replies: 6)

Loading...