Feeds
提问
Keep receiving warning sign "undefined variable" while using sim function and plotting graphs
In MATLAB sys=tf(5,[10^-6,0,0.3]); sim('Camdemo') plot(tout,simout(:,1),tout,simout(:,2),'--') below picture is SIMULINK...
4 years 前 | 1 个回答 | 0
1
个回答提问
Having error "Can't define variable t"
function dydt = problem(t,y) dydt= 5*exp(4*t)-3*y; end tspan=[0,1]; initial=10; [t,y]= ode45(@problem,tspan,initial); pl...
4 years 前 | 1 个回答 | 0
