Running Simulink simulation with input signals from matlab - I've got a working command but can't find it in documentation
Mostrar comentarios más antiguos
Hello,
I was looking for a way to run a simulink simulation programatically from matlab command with a given vector as a signal to the input block.
I couldn't find anything in help or google, but finally a friend reccomended me this command:
[tOut, xOut, yOut] = sim('model', timeVector, [], inputSignal);
Where inputSignal is a matrix with first column being a time vector and a second column of corresponding input values.
The problem is that matlab documentation doesn't say anything about using "sim" command in this way! Or at least I cannot find it. Could someone provide me with any official information about it, why does it work? And what is the third ([]) parameter about?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!