Need to use math lab for the Isim function for calculating the output and state response. Of...

70.2K

Verified Solution

Question

Electrical Engineering

Need to use math lab for the Isim function forcalculating the output and state response.

Of the Transfer Function s + 2 / s^2 + 2 s + 2. I been using thefollowing code and it doesn’t work

sys = tf([1 2],[1 2 2])

t = [0:0.01:];

u=0*t;

[y,T,x] = lsim(sys,u,t)

subplot(121), plot(T,x(:,1))

xlabel('Time(s)'),ylabel('x_1')

subplot(122),plot(T,x(:,2))

xlabel('Time(s)'),ylabel('x_2')

Answer & Explanation Solved by verified expert
4.5 Ratings (846 Votes)
lsim fuction is used for time respose of any input it hasdifferent format for different system representation forexampleyT lsimsut this format used for transfer functionsyTx lsimsutx0 this format used for state spaetypesystem resposeso for statespace response system will be in state form forthis use ss command to convet from transfer function    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students