Matlab error
5 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Kaustubha Govind
on 22 May 2012
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 Comments
See Also
Categories
Find more on LaTeX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!