Matlab error
5 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am new to simulink and was given a non-linear aircraft model to linearize. However i cannot run it as a multitude of error crop up . I would be ever grateful, if you could help me with them. The first bunch of errors are when i run the initailization file , that initalizes all the values . They seem to be related to the trim function being used . I have cut-copied some of the errors and the code below,
Error using ==> trim>trim_alg at 163
The specified number of model inputs (4) does not match actual number (0) of inputs The code ----
"% force all rates in the model to have a hit
feval(fcn, [], [], [], 'all');
y = feval(fcn, t, x, u, 'outputs'); % Error line 163
"
0 件のコメント
回答 (1 件)
Kaustubha Govind
2012 年 5 月 22 日
What is the value of 'u' that you pass in at line 163? It appears the issue is that you are passing in an empty array (ie. 0 inputs), when 4 inputs are expected by the model.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で LaTeX についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!