Community Profile

photo

Abhijot Mann


2017 年からアクティブ

Followers: 0   Following: 0

統計

Feeds

表示方法

質問


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...

約7年 前 | 1 件の回答 | 0

1

回答

質問


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)'); ...

約7年 前 | 1 件の回答 | 0

1

回答