what should i do for error 'Undefined function or method 'state' for input arguments of type 'char' when using 'SS' command?
조회 수: 6 (최근 30일)
이전 댓글 표시
I am using State space modelling 'SS' for modelling of BLDC motor I gave command 'sys= ss(A,B,C,D);'when i run the program i got the error'Undefined function or method 'state' for input arguments of type 'char'.what can be done for this?Kindly help me
댓글 수: 0
채택된 답변
C.J. Harris
2012년 7월 24일
The state-space input matrices to the 'ss' command should all be numeric and have the following size relationships:
A: p x p
B: p x q
C: r x p
D: r x q
댓글 수: 0
추가 답변 (1개)
Jan
2012년 7월 24일
Without seeing the contents of your variables A,B,C,D it is impossible to guess the reason.
As usual the debugger is a good idea whenever an error occurs:
dbstop if error
Then start your program again until it stops at the failing line. Then inspect the local variables to find out, why the function state() is called with a CHAR as input.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Control System Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!