Ode45 out matrix dimension error!!

조회 수: 1 (최근 30일)
Mo BO
Mo BO 2016년 5월 18일
댓글: Mo BO 2016년 5월 18일
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

채택된 답변

Walter Roberson
Walter Roberson 2016년 5월 18일
Please show your call to ode45.
I suspect you used
[s, t] = ode45(.....)
instead of
[t, s] = ode45(.....)
  댓글 수: 1
Mo BO
Mo BO 2016년 5월 18일
thank you ,it worked well

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by