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.
Matlab error
7 次查看(过去 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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!