Error with the DynamicSystem Toolbox
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello there!
I have a problem! When I want to compute a Matlab example I get following error:
Example 4
Convert State-Space Model to Transfer Function
Compute the transfer function of the state-space model with the following data.
To do this, type
sys = ss([-2 -1;1 -2],[1 1;2 -1],[1 0],[0 1]);
tf(sys)
error:
>> sys = ss([-2 -1;1 -2],[1 1;2 -1],[1 0],[0 1]);
>> tf(sys)
Error using DynamicSystem/tf (line 9Cool
Undefined function 'xscale' for input arguments of type 'double'.
this happens only on my pc...what is the problem?
thanks for the help!
댓글 수: 2
Craig
2012년 11월 29일
This looks like it is an intstallation issue. I would recommend contacting technical support.
채택된 답변
Ryan G
2012년 12월 4일
It appears that oyu have a 3rd party toolbox installed. The 'tf' function is usually part of the control system toolbox and it can handle what you have posted just fine. The error is pointing to a different tf function in the DynamicSystem (non MathWorks) toolbox.
I would suggest doing a
which -all tf
and seeing what tf functions are available. If there are others available you should use the MATLAB ones instead.
댓글 수: 4
Ryan G
2012년 12월 5일
It looks like it's pulling the correct default tf function. The dynamicsystem folder looks to be a subset of the control toolbox. Based on this output there should not be an issue.
You say you have 11b and 12b. Does it work in one and not the other?
추가 답변 (1개)
Sharath Aramanekoppa
2014년 3월 18일
I faced the same error as well. I spoke to the the tech support and they told me that it was the toolbox path were changed. Resetting the path, solved the issue for me. Here are the commands to reset the path: * restore defaultpath * restordefaultpath * restoredefaultpath * rehash toolboxcache * savepath
Regards,
Sharath
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!