SHARE
TWEET

Untitled

a guest Feb 25th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top