Question

matlab : MATLAB/Simulink tutorials in modeling dynamic systems

1.PNG

2.PNG

3.PNG


please can anyone help me with those 

1. For the following car-suspension dynamics below do the following: C = [0 1 0 Wheel m 2 a. Simulate using MATLAB for the following cases: Road surface For m1= 50, m2 =500, ks=20, kw=50, and b=100. Find the state-space module using MATLAB. Then find the transfer Inertial reterence function ot the module. Ans: Code Result on the MATLAB b. Use MATLAB find the Impulse response of the system for the following cases as below: Case 1: Set m2= 100, ks=5, kw =10, and b = 50. Then Plot the impulse response when m1 takes the tollowing values from 10 to 100, with five elements equally spaced in the same figure with index number Ans: Table 1: Case 1: Chonging mi Hgure 1 Code Q1. Compare the behavior ot the system tor the five cases of m1 and which one has the highest amplitude? Also, which one reaches its stable final value taster? (indicate the time using the plot)? |

Case 2: Set mi=10, ks=5, kw= 10, and b =50. Plot the impulse response when mz takes the following values from 100 to 1O00, with five elements equally spaced in the same figure with index number 2. Ans: Table 2: Case 2: Changing m2 Figure 2: Code 02. Compare the behavior of the system for the five cases of m2 and which one has the highest amplitude? Also, which one reach its stable tinal value taster (indicate the time using the plot)? -------------- ------------ - ------- - ------==---- --- -------------- -------------- Case 3: Set mi-10.m2-100, ks=5, and kw = 10. Plot the impulse response when b takes the following values from 50 to 200, with five elements equally spaced in the same figure with index number 3. Ans: able s: Case s: hanging b_ Figure3 Code Q3. Compare the behavior of the system tor the tive cases of b and which one has the highest amplitude? Also, which one reach its stable final value faster (indicate the time using the plot)?

Case 4: Set m1-10, m2=100, kw = 10, b=50. Plot the impulse response when ks takes the following values from 5 to 40, with five elements equally spaced in the same figure number 4. Ans: Table 4: Changing k Figure 4: Code 04. Compare the behavior of the system for the five cases of ks and which one has the highest amplitude? Also, which one reach its stable final value faster (indicate the time using the plot)? ---- Case 5: Set m1=10, m2=100, ks=5, and b=50. Plot the impulse response when kw takes the following values from 10 to 100, with five elements equally spaced in the same figure number 5. Ans: Table 5: Case 5: Changing KW Figure 5: Code Q5. Compare the behavior of the system for the five cases of kw and which one has the highest amplitude? Also, which one reach its stable final value faster (indicate the time using the plot the plot)?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CODE:

clc
close all
m1 =50;m2=500;ks=20;kw=50;b=100;
A= [0 1 0 0
-(ks+kw)/m1 -b/m1 ks/m1 b/m1
0 0 0 1
ks/m2 b/m2 -ks/m2 -b/m2]
B = [0 kw/m1 0 0]'
C = [0 0 1 0]
D = 0;
[num,den] = ss2tf(A,B,C,D)
% a)
G = tf(num,den)

% b)
m1 =50;m2=100;ks=5;kw=10;b=50;
A1= [0 1 0 0
-(ks+kw)/m1 -b/m1 ks/m1 b/m1
0 0 0 1
ks/m2 b/m2 -ks/m2 -b/m2];
B1 = [0 kw/m1 0 0]';
C1 = [0 0 1 0];
D1= 0;
[num1,den1] = ss2tf(A1,B1,C1,D1)
G = tf(num1,den1);
impulse(G)

- 0 x Figure 1 File Edit View aduĄ Insert Tools Desktop Window Help a my A. O IE O Impulse Response 0.25 0.15 Amplitude 0.05

Command Window New to MATLAB? See resources for Getting Started. A = 0 -1.4000 0 0.0400 1.0000 -2.0000 0 0.2000 0 0.4000 0 -0
RESULT:

2)

CODE:

clc
close all
m2=100;ks=5;kw=10;b=50;
for m1 =10:22.5:100
% b)
A1= [0 1 0 0
-(ks+kw)/m1 -b/m1 ks/m1 b/m1
0 0 0 1
ks/m2 b/m2 -ks/m2 -b/m2];
B1 = [0 kw/m1 0 0]';
C1 = [0 0 1 0];
D1= 0;
[num1,den1] = ss2tf(A1,B1,C1,D1);
G = tf(num1,den1);
impulse(G)
hold on
end
legend('m1 = 10','m1 = 32.5','m1 = 55','m1 = 77.5','m1 = 100');

RESULT:

Impulse Response m1 = 10 m1= 32.5 m1=55 m1= 77.5 m1 = 100 Amplitude System: m1 = 32.5 Settling time (seconds): 71.8 System: m

Impulse Response m1 = 10 m1= 32.5 m1=55 -m1 = 77,5 m1 = 100 Amplitude 50 100 150 200 250 Time (seconds)
Impulse Response 0.23 m1 = 10 m1= 32.5 m1=55 m1 = 77.5 m1 = 100 System: m1 = 10 Peak amplitude: 0.224 At time (seconds): 4.89

m1 = 10 will give less settling time

m1 = 32.5 will give more overshoot (comparatively)

Add a comment
Know the answer?
Add Answer to:
matlab : MATLAB/Simulink tutorials in modeling dynamic systems
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
  • 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...

  • Please answer using Matlab Software. Also please show the graphs in Matlab along with the Matlab ...

    Please answer using Matlab Software. Also please show the graphs in Matlab along with the Matlab Code. Thank you! Part 1 Review the theoretical derivations of the amplitude and phase response of an RC low pass filter at the end of the assignment; Review the Matlab example 4-1 included at the end of the assignment; it includes the Matlab directions on how to plot the amplitude response considered above. The plot in the Matlab example displays 2 decades of normalized...

  • Please help with this exercise in Matlab 4 The range of an object shot at an...

    Please help with this exercise in Matlab 4 The range of an object shot at an angle θ (with respect toxaos), with the initial velocity of Va (in the absence of air resistance), is calculated by the following formula: va , sin(20) Range (0 052) And the trajectory of object is given by where h is the height of the object at each x location and g 9.81 m/s. Using n/8 increment size for the angle and Vo-10 m/s, plot...

  • NB! This task is required to be solved in matlab. this task also requires the use...

    NB! This task is required to be solved in matlab. this task also requires the use of the function displayDualSpectrum(); which i have pasted in the bottom. the tasks that i need help with are A), B) and C). this is a multi-part question. Task - Frequency mixing We use a basic signal that can be described mathematically as follows: with this We shall then make an amplitude modulated signal: where fc is the carrier frequency. the code below specifies...

  • please show work thank you! Use Matlab to and the SISOTool construct the system for analysis...

    please show work thank you! Use Matlab to and the SISOTool construct the system for analysis (You may want to preview the tf and sisotool commands from matlab by typing help tf or doc tf etc...) Each Block B1, B2, B3 and B4 will be constructed individually and then concatenated together As shown in the block diagram let K=0.1 Set B1 = 0.1 by typing in matlab >>B1=0.1 To assign the Blockl values use the TF command to construct a...

  • please use MATLAB, screenshot the code and the plots. Answer all parts. Laboratory description: The speed...

    please use MATLAB, screenshot the code and the plots. Answer all parts. Laboratory description: The speed control of a high-speed train is represented by the system shown in Figure 1. The transfer function of the train dynamics is as follows. G(s) = 2 + 10s + 20 Laboratory assignment: Part A. For the open-loop system described by the following block diagram, assume that the input r(t) is a unit step. (1) Compute the steady-state system output Yss. (2) Find the...

  • 5) An N-point moving-average (running-average) system has the following input-output relation shi...

    5) An N-point moving-average (running-average) system has the following input-output relation ship: N-1 a) Is the N-point moving-average system causal? b) Obtain the expression for the impulse response h[n] and sketch hin. c) Given the input sequence [n] below with 100 elements where the values of the index n change between 0 and 99: r-[21 22 22 21 18 19 21 20 19 23 23 22 23 25 27 30 31.5 32 33 32 28 29 28 29 30 32...

  • MATLAB Test Cases: % [area1] = integrals(int1, int2) int1 = 1 2 3 4 5 6...

    MATLAB Test Cases: % [area1] = integrals(int1, int2) int1 = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 int2 = Columns 1 through 14 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 6 9 12 15 18 21 24 27 30...

  • Use the attached Matlab code as a basis to solve the following ordinary differential equation usi...

    Question 1 QUESTION 2 Use the attached Matlab code as a basis to solve the following ordinary differential equation using Euler's method, with timestep of 0.1, from t-0to t-100. d)0) -0 - sin (5vt cos(у Plot y versus t from t=0 to t=100. How many local maxima are on this interval(do not include end points). Be careful to count them all! Answer should be an integer 1 w% Matlab code for the solution of Module 2 3 dt-9.1; %dt is...

  • 3.2 Simple Bandpass Filter Design The L-point averaging filter is a lowpass filter. Its passband width...

    3.2 Simple Bandpass Filter Design The L-point averaging filter is a lowpass filter. Its passband width is controlled by L, being inversely proportional to L. In fact, you can use the GUI altidemo to view the frequency response for different averagers and measure the passband widths. It is also possible to create a filter whose passband is centered around some frequency other than zero. One simple way to do this is to define the impulse response of an L-point FIR...

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