Ode45 out matrix dimension error!!
조회 수: 1 (최근 30일)
이전 댓글 표시
function [ dot ] = Untitled2( t,var )
dot=[var(1); var(2)*9.81*-1/0.2];
end
The output from workspace
instead of 45*2 and t 45*1
댓글 수: 0
채택된 답변
Walter Roberson
2016년 5월 18일
Please show your call to ode45.
I suspect you used
[s, t] = ode45(.....)
instead of
[t, s] = ode45(.....)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!