Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 . 2 How to do work assignment 0 1 tasks. Click the MATLAB button on the desktop Open new script in MATLAB Save new

5.2 How to do work assignment 01 tasks. Click the MATLAB button on the desktop Open new script in MATLAB Save new script it in surname_studentnumber.m Write code for task 1 in this script.3
(1) Write a comment at the start of the code to describe the code adding %symbol% code to generate transfer function for task 1(2) You can input the numerator and denominators of the transfer function asmatrix.(3) Lets call num1 as numerator matrix, den1 as denominator matrix of thetransfer function G1(s).(4) Denominator of G1(s) is a second order equation s2+2 s +10. This equationcan be considered to have three terms s2, s1 and s0 with 1,2 and 10 ascoefficient. Thus, we can define the denominator variable of transfer functionG1(s) as:den1=[1210];(5) Since there are no s2, s1 terms in the numerator we write their coefficients as0 and 0. Thus, we can define the numerator variable of transfer function G1(s)as:num1=[0010];(6) Write the above two variables in your code.(7) You can now call the following transfer function in to generate the transferfunction:G1=tf (num1, den1);(8) You can check by printing you have got the right transfer function for G1(s) byinserting theprintsys (num1,den1);(9) Double check you are in the same directory in which your m script exist.(10) Now click the editor section of MATLAB and then click RUN button in thetop to execute or run the code and get the result.(11) Check your command window shows the transfer function with same valuesas in G1(s) transfer function.(12) Now repeat the above steps to create code for the transfer function G2(s).Use:num2=[05];den2=[15];(13) Now click the editor section of MATLAB and then Click RUN to check youget the right G2 transfer function(14) Finally, create the cascade transfer function by calling the following function.[num, den]=series (num1, den1, num2,den2);(15) Print the cascade transfer function using the following print function;printsys (num, den);4
(16) Now click the editor section of MATLAB and then Click RUN to check youget the transfer function for the cascade system.(17) Repeat the step (14) & (15) to create the parallel transfer function of task 2:[num, den]=parallel (num1, den1, num2,den2);printsys (num, den);(18) Now click the editor section of MATLAB and then Click RUN to check youget the transfer function for the parallel system.(19) Repeat the step (14) & (15) to create the closed loop transfer function of task3:[num, den]=feedback (num1, den1, num2,den2);printsys (num, den);(20) Now click the editor section of MATLAB and then Click RUN to check youget the right G2 transfer function(21) Use the step response command for the transfer functions obtained for thecascade, parallel and closed loop systems to obtain their step input response.sys = tf(num, den);step(

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago