MATLAB Ltiview and negative step response of a linear system

Click For Summary
The discussion revolves around a code issue related to evaluating the response of a linear system to a negative step input. The original code provided by the professor successfully generates a response for a positive step using the lti view function in MATLAB. However, the user seeks guidance on how to modify the code to visualize the system's response to a negative step input. Suggestions include consulting the MathWorks documentation for relevant functions and parameters, and checking with the professor for further clarification. A key point mentioned is that for linear systems, the response to a negative step is simply the negation of the response to an equivalent positive step, which can simplify the analysis. The user ultimately found a solution using Simulink.
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 dRic2

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
Replies
2
Views
2K
  • · 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