Ask MATLAB Expert

Question 1. (a) What is the period of the forced oscillation? What is the numerical value (modulo 2Π) of the angle α defined by?

(b) In this question you are asked to modify the file LAB06ex1.m in order to plot the complementary solution of (L6.1), that is, the first term in (L6.2). First define in the file the angle α (alpha) using (L6.4), then evaluate the complementary solution yc by subtracting the quantity C cos(ωt - α) from the numerical solution y. Plot the resulting quantity. Does it look like an exponentially decreasing oscillation?

Why or why not? Include the modified M-file and the corresponding plot.

Question 2. We now consider C as a function of ω. We use again ω0 = 2, c = 1 and y(0) = y′(0) = 0. The previous problem determined C for a specific value of ω. Here we consider a range of values for ω and determine numerically the corresponding amplitude C. We then plot the result as a function of ω, together with the theoretical amplitude from (L6.3). You may need the following MATLAB program.

function LAB06ex2 omega0 = 2; c = 1;
OMEGA = 1:0.02:3;
C = zeros(size(OMEGA)); Ctheory = zeros(size(OMEGA));
t0 = 0; y0 = 0; v0 = 0; Y0 = [y0;v0]; tf = 50; t1 = 25;
for k = 1:length(OMEGA) omega = OMEGA(k);
param = [omega0,c,omega];
[t,Y] = ode45(@f,[t0,tf],Y0,[],param);

i = find(t>t1);
C(k) = (max(Y(i,1))-min(Y(i,1)))/2;
Ctheory(k) = ??; %FILL-IN
end figure(2)
plot(??); grid on; %FILL-IN
xlabel('\omega'); ylabel('C');
---------------------------------------------------------
function dYdt = f(t,Y,param) y = Y(1); v = Y(2);
omega0 = param(1); c = param(2); omega = param(3);

dYdt = [ v ; cos(omega*t)-omega0^2*y-c*v ];

(a) Fill in the missing parts in the M-file LAB06ex2.m and execute it. You should get a figure like Figure L6b. Include the modified M-file in your lab report.

(b) Examine the graph obtained by running LAB06ex2.m and determine for what (approximate) value of ω the amplitude of the forced oscillation, C, is maximal. This value of ω is called the practical resonance frequency. Give the corresponding maximum value of C.

(c) Determine analytically the value of ω for which the amplitude of the forced oscillation, C, is maximal by di?erentiating the expression for C in (L6.3) as a function of ω. Compare the value you find with the value obtained in part (b).

(d) Run LAB06ex1.m with the value of ω found in part (c) (include the graph). What is the amplitude of the forced oscillation? How does it compare with the amplitude of the forced oscillation in problem 1.? If you run LAB06ex1.m with any other value of ω, how do you expect the amplitude of the solution to be?

(e) Are the results a?ected by changes in the initial conditions? Answer this question both nu- merically (by modifying the initial conditions in LAB06ex2.m) and theoretically (by analyzing the expression for C in (L6.3)). Note that the initial conditions for the DE are y0 and v0.

Question 3. Set c = 0 in LAB06ex2.m.

2010_Figure.jpg

(a) Explain what happens. What is the maximal amplitude? What is the value of ω yielding the maximal amplitude in the forced solution? How does this value compare to ω0?

(b) Run LAB06ex1.m with c = 0 and ω equal to the value found in part (a). Comment on the behavior of the solution. Include the graph.

Question 4. To see the beats phenomenon, set c = 0 and ω = 1.8 in LAB06ex1. Also extend the interval of simulation to 100.

840_Figure1.jpg

(a) In LAB06ex1 define the "envelope" function A = 2C sin ( 1/2(ω0 - ω)t) with C = 1/|ω02 - ω2|.

Plot A in red and -A in green, together with the solution. You should obtain Figure L6c. Include the modified M-file.

2324_Figure2.jpg

(b) What is the period of the fast oscillation (that is, the period of sin ( 1/2(ω0 + ω)t))? Confirm your answer by zooming in on the graph of the solution. Include a graph to support your answer.

(c) What is the length of the beats? Determine the length analytically using the envelope func- tions, and numerically from the graph.

(d) Change the value of ω in LAB06ex1 to 1.9 (a value closer to ω0) and then ω = 1.6 ( a value farther away from ω0). Include the two graphs. For each of these two values of ω find the period of the fast oscillation and the length of the beats. How do the periods change compared to parts (b) and (c)?

(e) If you let ω = 0.5, is the beats phenomenon still present? Why or why not?

Attachment:- Forced Equations and Resonance.pdf

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M92057903
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in MATLAB

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As