Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1.  
  2. %% Specify the model name
  3. model = 'model3';
  4. num_p = '[0 1]';
  5. den_p = '[0.1 1]';
  6. set_param('model3/Transfer', 'Numerator', num_p);
  7. set_param('model3/Transfer', 'Denominator', den_p);
  8.  
  9. %% Specify the analysis I/Os
  10. % Get the analysis I/Os from the model
  11. io = getlinio(model);
  12.  
  13. %% Specify the operating point
  14. % Use the model initial condition
  15. op = operpoint(model);
  16.  
  17.  
  18. %% Linearize the model
  19. sys = linearize(model,io,op);
  20.  
  21. %% Plot the resulting linearization
  22. step(sys)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement