how to represent this state space model in matlab using A,B,C,D matrix?
이전 댓글 표시

In this x5dot equation there is a term like sgn(x6)*x5/Aa*x6. how to enter this term interms of A B C D matrix in state space.
댓글 수: 3
senthil kumar
2015년 8월 14일
Sebastian Castro
2015년 8월 14일
Don't know what your error message was (you should always include that), but I copied your code over and it worked for me after one change.
The ode45 expects a function handle, which you can find by putting an @ character in front of the function name as follows:
[t,x]=ode45(@cktt,tspan,x0);
... Now, when I look at the results, it seems like the only state that gives me a non-NaN output is state 6. However, the code runs and you can look into the equations now to see if they're okay :)
- Sebastian
senthil kumar
2015년 8월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 PID Controller Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!