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);
plot(t,y,'-o');
-----------------------------
Hi this is my code and I am having difficulties to run this code.
How can I fix it?
Directions keep telling me that "Can't define variable t"
Do i need to reinstall MATLAb?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
