Ltiview and negative step response of a linear system

Click For Summary

Discussion Overview

The discussion revolves around evaluating the response of a linear system to both positive and negative step inputs using MATLAB code. Participants explore how to modify existing code to visualize the negative step response.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • One participant shares a MATLAB code snippet for evaluating the response of a linear system to a positive step input.
  • Another participant suggests checking the MathWorks site for additional resources or definitions related to the functions used in the code.
  • A later reply indicates that the participant found an alternative solution using Simulink.
  • One participant proposes that for a linear system, the response to a negative step should be the negation of the response to a positive step of the same size.

Areas of Agreement / Disagreement

There is no consensus on how to implement the negative step response in the provided code, and the discussion includes multiple approaches and suggestions without resolving the issue.

Contextual Notes

Participants have not fully explored the implications of linearity on the system's response, and there may be missing assumptions regarding the system's parameters and definitions.

dRic2
Gold Member
Messages
887
Reaction score
225
Hi, my professor gave me I code where he used to evaluate the answer of a linear system to a step increase in the input variables like this:

Code:
MySystem = ss(A, B, C, D);
ltiveiw('step', MySystem, 'r-', 300);

My problem is that with this code I get the response only for a positive step. I'd like to see what happens for a negative step as well, but I can't figure out how to do it.

Thanks
Ric
 
Physics news on Phys.org
Check the MathWorks site on these functions you might spot something to help you there.

I did find this reference creating a state space that is input to the lti view function

https://www.mathworks.com/help/control/ref/ss.html
This may be where you can define your params.

If not check with your prof if possible.
 
Thanks, I'll keep searching.

(ended up using SimuLink)
 
Last edited:
If the system is linear, the response to a negative step is the negation of the response to a positive step of the same size.
 
  • Like
Likes   Reactions: dRic2

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
5
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K