How to fix "Undefined function 'makeweight' for input arguments of type 'double'."
이전 댓글 표시
I was trying to see the response of active suspension system tutorial by matlab.
ActNom = tf(1,[1/60 1]); Wunc = makeweight(0.40,15,3); unc = ultidyn('unc',[1 1],'SampleStateDim',5); Act = ActNom*(1 + Wunc*unc); Act.InputName = 'u'; Act.OutputName = 'fs';
bodeplot(Act,'b',Act.NominalValue,'r+',logspace(-1,3,120)) title('Nominal and 20 random actuator models')
I was geting this error below. Undefined function 'makeweight' for input arguments of type 'double'.
Error in Active (line 24) Wunc = makeweight(0.40,15,3);
Can someone help me regarding this??
답변 (1개)
Christiaan
2015년 3월 10일
0 개 추천
Dear Naginder,
If you type in the matlap prompt 'which makeweight', you can find out if matlab can find the function makeweight.
The function 'makeweight' is part of the Robust Control Toolbox of Matlab. An easy way to check which toolboxes you have, is to type in the matlab prompt: 'ver'.
If you have the Toolbox but cannot find the function, you can either use restoredefaultpath. A second method is to search in your hard drive for the function and restore this function at the correct path.
Good luck! Christiaan
카테고리
도움말 센터 및 File Exchange에서 Vehicle Dynamics Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!