Recent content by FlvD

  1. F

    MATLAB Help with ODE45 and Plotting in MATLAB Loop

    Thanks for the replies.. @ Pythagoran..I tried the same way...But another problem arises As in each go through the loop the length(t) & length(h) varies in the for loop. Hence the command t(i,:) produces one result but then shows error as : 'Subscripted assignment dimension...
  2. F

    MATLAB Help with ODE45 and Plotting in MATLAB Loop

    Hey i need help in ODE45...i'm new to PF...pls help me i have the following code >>for i=1:5 >>tspan=[0 30] >>h0=Hv(i) >>[t,h]=ode45['a ODEfunction',tspan,h0] >>plot(t,h) >>end in this loop how can i save 5 values of [t,h], as t, h produces each loop run like follows t= 1 2 3...
  3. F

    MATLAB Troubleshooting ODE45 Matlab Subfunction: Save Matrix Values in Main Code

    Hey i need help in ODE45 too i have the following code >>for i=1:5 >>tspan=[0 30] >>h0=Hv(i) >>[t,h]=ode45['a ODEfunction',tspan,h0] >>plot(t,h) >>end in this loop how can i save 5 values of [t,h], as t, h produces each loop run like follows t= 1 2 3 4 . . . h= 5 6 7...
  4. F

    Newbie Asks: Plotting MATLAB Commands Output in PF

    Homework Statement Hello all, I'm new to PF..Pls help.. I'm stuck in the following query. I've MATLAB commands as follows: Hv=[1,2,3,4,5] for i=1:5 tspan=[1 30] h0=Hv(i) [t,h]=ode45[expression] plot(t,h) end And here i need to see induvidual plots of my 5 results..I...
Back
Top