Re: Please guide me.thanks





"Mehran-Masoudi" <mn_polymer@xxxxxxxxx> wrote in message
news:ef17924.-1@xxxxxxxxxxxxxxxxxxx
>I want to plot a ode in Matlab6.In this ode i have A'' as
> concentration in a reactor and t as time.I want to see how 'A'
> differs with time in three condition as below:
> dA/dt=-k*A with initial value A(0)=1 which means concentration in
> time 0 is one.
> and we have k=.1 & k=1 & k=10.now I want to compare this three plot
> in one figure.
> please help me with ode45.
> thanks alot.
> Mehran.Masoudi
>

There are many examples on how to use ode45 on the net, you can start
by studying there.

I have few basic examples on my web site below, start from exmaple 53.

http://12000.org/my_notes/mma_matlab_control/howto.htm

to compare the result, plot all solution on the same plot. you can use
the command 'hold on' to do that.

Nasser




.



Relevant Pages

  • Re: Please guide me.thanks
    ... Nasser Abbasi wrote: ... >>I want to plot a ode in Matlab6.In this ode i have A'' as ... >> please help me with ode45. ...
    (comp.soft-sys.matlab)
  • Re: ODE solver
    ... > solution/function to an ODE instead of graphing the solution? ... can plot them. ...
    (comp.soft-sys.matlab)
  • Please guide me.thanks
    ... I want to plot a ode in Matlab6.In this ode i have A'' as ... concentration in a reactor and t as time.I want to see how 'A' ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: LOG of a solution of ODE plotted against its parameter
    ... I can see how it will be possible to solve the ode many times while ... varying the parameter a. ... But I need to plot the Logagainst the values of a used to generate ... This ODE is supposed to have bistability over that range of parameters. ...
    (sci.math)
  • LOG of a solution of ODE plotted against its parameter
    ... I can see how it will be possible to solve the ode many times while ... varying the parameter a. ... But I need to plot the Logagainst the values of a used to generate ... This ODE is supposed to have bistability over that range of parameters. ...
    (sci.math)

Loading