Matlab error
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Kaustubha Govind
el 22 de Mayo de 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 comentarios
Ver también
Categorías
Más información sobre LaTeX en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!