Doubt regarding ode45 plotting
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Pavan Kumar
am 27 Jan. 2015
Bearbeitet: Pavan Kumar
am 3 Feb. 2015
Dear Friends,
I need to plot ABS(B(1)) Vs delk in the following program code. How can i include delk variable in the ode45 function calling line.
0 Kommentare
Akzeptierte Antwort
Torsten
am 28 Jan. 2015
Please make more clear what you try to plot.
As far as I can see, delk is a model parameter (scalar).
B is a vector (solution at different times).
You can't plot a vector over a scalar.
I guess you want to plot different solutions B over time for different values of delk.
For this puropse, you have to generate different solutions B (e.g. in a loop in which you call ODE45 several times for changing values of delk).
Best wishes
Torsten.
9 Kommentare
Weitere Antworten (1)
Sara
am 27 Jan. 2015
ode45(@(t,x)DFG789(t,x,var_1),.....
Then the function becomes:
function dB = DFG789(Z1,B,var_1)
1 Kommentar
Siehe auch
Kategorien
Mehr zu Visualization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!