Info
此问题已关闭。 请重新打开它进行编辑或回答。
error in code please help
2 次查看(过去 30 天)
显示 更早的评论
function dy = vdp1000(t,y) dy = zeros(2,1); % a column vector dy(1) = y(2); dy(2) = 1000*(1 - y(1)^2)*y(2) - y(1); [T,Y] = ode15s(@vdp1000,[0 3000],[2 0]); plot(T,Y(:,1),'-o')
this code is showing error Error in vdp1000 (line 3) dy(1) = y(2);
0 个评论
回答(1 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!