Question
solve + use matlab + show the code
Laby /Ass.& System shon Lel Cnide the Ru + 1 2oH T-05 sec D+S)(ES) Using MADLAB CAmpat ond plot the str sp DK10
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB Code:

clc;
clear;
T1=0.5; %Sample Time
G_s= tf(1,[2 5 3]); %generate transfer function with numerator and denominator.
G_z_T1 = c2d(G_s, T1, 'zoh'); % convert model from continuous to discrete.
opt = stepDataOptions('InputOffset',0,'StepAmplitude',1.0);
T_fin =10; %Final Time
figure(1);
hold on;
step(G_s, opt, T_fin); %Step response of transfer function
step(G_z_T1 , opt, T_fin); %step response of discrete transform

Plot:

Step Response 0.35 0.3 0.25 0.2 0.15 0.1 0.05 2 4 7 10 Time (seconds) Amplitu ide st LO m

Add a comment
Know the answer?
Add Answer to:
solve + use matlab + show the code Laby /Ass.& System shon Lel Cnide the Ru...
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
  • Read the sample Matlab code euler.m. Use either this code, or write your own code, to solve first...

    Read the sample Matlab code euler.m. Use either this code, or write your own code, to solve first order ODE = f(t,y) dt (a). Consider the autonomous system Use Euler's method to solve the above equation. Try different initial values, plot the graphs, describe the behavior of the solutions, and explain why. You need to find the equilibrium solutions and classify them. (b). Numerically solve the non-autonomous system dy = cost Try different initial values, plot the graphs, describe the...

  • Signals and System: MATLAB code provided? Begin with the MATLAB script named lab4.m as follows. You...

    Signals and System: MATLAB code provided? Begin with the MATLAB script named lab4.m as follows. You will modify this example code to cover each of the parts of this lab. You must always carefully document and include appropriate comments in any MATLAB code. & starting point for Lab#4 % LAPLACE TRANSFORM %---------- clear all; close all; -------------------- s = tf('s'); sys = 1/(5+1); & define H(s) for a dynamic system named sys ---------------- figure(1); bode (sys); % plot magnitude and...

  • A state space linear system is shown below. Use Matlab to solve the following problems. Requirement...

    A state space linear system is shown below. Use Matlab to solve the following problems. Requirement for project report: (1) Results; (2) Matlab code. dx1/dt=-x1(t)+u(t) dx2/dt=x1(t)-2x2(t)-x3(t)+3u(t) dx3/dt=-3x3(t) y(t)=-x1(t)+2x2(t)+x3(t)+u(t) (1) Assume the system has input u(t)=e-3t if t>t0 and zero initial state x(0)=[0;0;0]. Using the transition matrix obtained, compute the system’s output (analytical solution), and plot the output as a function of time (t within 0 to 10). (2) Using the function lsim to simulate the system’s output (analytical solution), and...

  • Use matlab Need the matlab code Problem 3: (a) Use Fourier transform to find i(t) in...

    Use matlab Need the matlab code Problem 3: (a) Use Fourier transform to find i(t) in the circuit below if v.( 10e2tu(t). Use MATLAB to solve your problem. (b) Plot the magnitude and phase spectrum of the current I(o). 2Ω 3 20 1 H Submit the solution in word file. The used MATLAB code should be included Due date: last day of classes

  • Q: please solve using matlab code withe comment 1.      Write the Matlab code to generate: x...

    Q: please solve using matlab code withe comment 1.      Write the Matlab code to generate: x = cos(w1*t) + cos(w2*t); where, w1=7; w2=23; t = [0:0.005:2] 2.   Plot the signal using sub plot a.   in time domain b.   in frequency domain 3)   Sample the signal under different sampling conditions: a.      Ts<1/2fm b.      Ts=1/2fm c.       Ts>1/2fm 4).      Multiple plot: the signal sampled under sampling condition and the signal x a.      in time domain b.      in frequency domain c.       Label and Title...

  • please solve on matlab and provide code thanks, im having a hard tike understanding it. Name:...

    please solve on matlab and provide code thanks, im having a hard tike understanding it. Name: ECE 471, In class problem: 2.3 a=125 sec- At = 1msec, In Matlab, plot g(t) t = n At, tel-100 At:100] at u(t) t>O g(t) = -eat u(-t) t<0 Use the FFT to compute g(f), g(f) fft (g)

  • Please show the code necessary, and explanations on MATLAB. Plotting 11) Plot the function y =...

    Please show the code necessary, and explanations on MATLAB. Plotting 11) Plot the function y = sin(x) from x = 0 to 21. 12) Plot the functions y = x2 z = x2 + 2x + 1 from x = 0 to 2 on the same graph. Scripts: Input and Output 13) Write a script (M-file) to read in a message at the command line using the MATLAB input function and then display the message to the Command Window using...

  • First solve by hand then using MATLAB and include the code

    first solve by hand then using MATLAB and include the code 3. (All students!) Find the exact solution to the problem 4x, x2 +2x 4 xi +x2 +4x3=-1 Now use MATLAB to solve this system iteratively, using the Jacobi iteration method. 3. (All students!) Find the exact solution to the problem 4x, x2 +2x 4 xi +x2 +4x3=-1 Now use MATLAB to solve this system iteratively, using the Jacobi iteration method.

  • please help Create a MATLAB code to solve the following problem using the cycloidal displacement method...

    please help Create a MATLAB code to solve the following problem using the cycloidal displacement method discussed in the notes. Generate the SVAJ plot, and be sure to label each plot. Design a double-dwell cam to move a follower from 0 to 2.5 in in 60 deg, dwell for 120 deg, fall 2.5 in in 30 deg and dwell for the remainder. The total cycle must take 4 sec. Plot the s vaj diagrams.

  • Please use Matlab Code to solve. Show Screenshot of code and output. Create your own data...

    Please use Matlab Code to solve. Show Screenshot of code and output. Create your own data that represents the weight of 30 people.Test the null hypothesis that the data comes from a normal distribution with mean mu = 70 and standard deviation sigma = 8. Hint: use the "test" command in Matlab.

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
ADVERTISEMENT