| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Control Design |
| Contents | Index |
| Learn more about Simulink Control Design |
lin = linlftfold(lin_fixed,blocksubs)
lin = linlftfold(lin_fixed,blocksubs) combines the following linearization results into one linear model lin:
Linear model lin_fixed, which does not include the contribution of specified blocks in your Simulink model
You compute lin_fixed using linlft.
Block linearizations for the blocks excluded from lin_fixed
You specify the block linearizations in a structure array blocksubs, which contains two fields:
'Block' is a string specifying the Simulink block to replace.
'Value' is the value of the linearization for each block.
Linearize the following parts of the scdtopmdl Simulink model separately and then combine the results:
Fixed portion, which contains everything except the Parameter Varying Controller model reference

Parameter Varying Controller model reference, which references the scdrefmdl model

% Open the Simulink model
topmdl = 'scdtopmdl';
% Linearize the model without the Parameter Varying Controller
io = getlinio(topmdl);
blocks = {'scdtopmdl/Parameter Varying Controller'};
sys_fixed = linlft(topmdl,io,blocks);
% Linearize the Parameter Varying Controller
refmdl = 'scdrefmdl';
sys_pv = linearize(refmdl);
% Combine the results
BlockSubs(1) = struct('Name',blocks{1},'Value',sys_pv);
sys_fold = linlftfold(sys_fixed,BlockSubs);
getlinio | linearize | linio | linlft | operpoint
![]() | linlft | linio | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |