get u0 and y0 to operating point
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I am linearizing a system at a certain time. Is there an option to get the input and output values at this specified point in time?
I know that I could add some elements in the system to write the values. But I thought there could be a smarter solution. (?)
Cheers, Frank.
My code:
%%Specify the model name
model = 'sysToLinOneD';
%%Create the linearization I/O as specified in sysToLinOneD
ios(2) = linio('sysToLinOneD/Lookup 1800',1,'out');
ios(1) = linio('sysToLinOneD/Constant',1,'in');
%%Linearize the model
sys = linearize(model,ios);
%%Plot the resulting linearization.
figure(1)
step(sys)
0 comentarios
Respuestas (1)
Arkadiy Turevskiy
el 4 de Abr. de 2012
In your code you are linearizing at default model operating point. If you want to linearize a model at a speciific simulation time or at specific operating condition (for example, your model states are at steady state, and output is equal to number x), you need to trim the model first, using findop command.
To trim at a simulation time of 5 secs and then linearize the model at that condition:
>>op=findop(model,5);
>>sys=linearize(model,op,ios)
To see inputs and outputs, add inports and outports accordingly. Then simply do
>>op
HTH.
Arkadiy
0 comentarios
Ver también
Categorías
Más información sobre Linearization en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!