I am trying to use linmod to extract a linear model of a non linear controller. I first trim the model in SIMULINK using the "trim" command, and receive correct results for my trim states ("xInitial") and model inputs ("FCS_Input") for a known output of the system. When I use linmod('mymodel',xInitial,FCS_Input) with "xInitial" & "FCS_Input" calculated by the trim function, I receive a "D" matrix that is identically zero. My model obviously has some linear i/o transmissions so that D must have some non-zero elements in it. Could the result I'm getting be due to direct connection of some of the inputs to terminator blocks? (I do this because the inputs to the model are vectors, where only part of the components are actualy used by my controller)
MATLAB: Problem in linearizing a Simulink model
linmodsimulink
Best Answer