Question

Second Semester 2018/19 Matlab Project 0630-318/01A 12/04/2019 Problem 1 cs+12 For the transfer function: -= 20s2+cs+12 Plot
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab Code:

clc;
clear all;
close all;
%%For c=3
num=[3 12];
den=[20 3 12];
sys=tf(num,den); %Creating Transfer function
step(sys); %Step response of Transfer function for c=3
hold on;
%%For c=8
num=[8 12];
den=[20 8 12];
sys=tf(num,den);
step(sys); %Step response of Transfer function for c=8
axis([0 15 0 1.8]); %Scaling the axis
grid on;
xlabel('t');
ylabel('x(t)');
legend('c=3','c=8');

Output figure:

Step Response C-3 1.6 1.4 1.2 0.8 0.6 0.4 0.2 10 15 t (seconds)

Add a comment
Know the answer?
Add Answer to:
Second Semester 2018/19 Matlab Project 0630-318/01A 12/04/2019 Problem 1 cs+12 For the transfer function: -= 20s2+cs+12...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 7. [MAILABⓒproblem] Write a short MATLAB script to construct the transfer function of a system...

    Problem 7. [MAILABⓒproblem] Write a short MATLAB script to construct the transfer function of a system that is described by the following poles, zeros, and gain zeros =-1,1 ±2j poles =-2土2,-0.4 k = 1.28 and plot its response to a step input with amplitude 5 (meaning, u(t)-5 × 1(t). Determine the system's (1) time constant and (2) rise time from the plot of the step response. (Submit the MATLABO script and the plot; both should fit into one page. You...

  • the code in the photo for this I.V.P dy/dx= x+y. y(0)=1 i need the two in the photo thank you New folder Bookmark...

    the code in the photo for this I.V.P dy/dx= x+y. y(0)=1 i need the two in the photo thank you New folder Bookmarks G Google dy/dx x+y, y(0)=1 2 h Exact Solution 1.8 Approximate Solution Mesh Points 1.6 -Direction Fied 1.4 1.2 1 0.8 04 0.2 0.3 0.1 0 X CAUsersleskandara\Desktop\New folder emo.m EDITOR PUBLISH VEW Run Section FILE NAVIGATE EDIT Breakpoints Run Run and FL Advance Run and Advance Time BREAKPOINTS RUN 1 - clear all 2 clc 3-...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT