photo

Abhijot Mann


Actif depuis 2017

Followers: 0   Following: 0

Statistiques

Feeds

Afficher par

Question


How can i change the values of parameter E1 to 1 then 50 and lastly 100 and plot a single graph that include three lines for three inputs of E1 in same graph. I need to draw a comparison
if true E1 = 50; E2 = 3;E4=8;E3=5;E5=7;E6=7; tspan = [0 0.05]; y0 = [1 0 0 0]; [t,y] = ode45(@(t,y) odefcn(t,y,E1...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


how can i convert a string that is "A*x+B*y" to an mathematical differential expression that will be computed later on using ode solver, currently the error is
function dydt = odefcn(t,y,A,B) dydt = zeros(2,1); dydt(1) = y(2); dydt(2) = evalin(symengine,'A*y(1)-B*y(2)'); ...

plus de 7 ans il y a | 1 réponse | 0

1

réponse