MATLAB ltiview and negative step response of a linear system

  • Thread starter dRic2
  • Start date

dRic2

Gold Member
478
80
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
 
10,587
4,120
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


This may be where you can define your params.

If not check with your prof if possible.
 

dRic2

Gold Member
478
80
Thanks, I'll keep searching.

(ended up using SimuLink)
 
Last edited:

FactChecker

Science Advisor
Gold Member
2018 Award
4,865
1,669
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.
 

Want to reply to this thread?

"ltiview and negative step response of a linear system" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top