Question

1. Consider a Gaussian solution of the traveling-wave form ψ(z,t)-exp(-a(z-vt)2). The parameter values are a 1, 2. (a) Explain the physical meaning of these parameters (eg. what would happen if we took a = 10 instead?) Determine the direction of propagation of this solution: Is it traweling to the left or to the right? (2pts) (b) Write a Matlab code to plot the Gaussian solution for the parameters a-1, u 2, and t 0, 1, 2, 3. Choose the range of x such that it is appropriate for visualization of all four curves. Use different plotting symbols for each time so that you can see how the solution evolves with time, and note the value of x at which the Gaussian is peaked for each time t. Please submit a listing of your code along with your numerical plot. (3pts) I need to see the MATLAB code pleaseMATLAB question I need the code exactly as you would write it in MATLAB. thank you

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

Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clc;
close all
clear all
a=1;
v=2;
x=-3:0.01:10;
s={};
for t=0:3
y=exp(-a*(x-v*t).^2);
plot(x,y,'Color',rand(1,3));
hold on;
s{t+1}=sprintf('t=%d',t);
end
legend(s);

Figure 1 File Edit View nsert Iools Desktop Window Help 一1-0 t-2 1-3 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 10 .2 ENG 6:13 AM IN 02/04/19 O Type here to search

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
MATLAB question I need the code exactly as you would write it in MATLAB. thank you...
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
  • Using Matlab. I need the matlab code for: a. Plot a 1 Hz sine wave b....

    Using Matlab. I need the matlab code for: a. Plot a 1 Hz sine wave b. Plot the unit rectangle function. c. Plot the unit triangle function Show each over a plotting interval -5 sec to 5 sec.

  • I need help with Matlab code. Thank you Consider the RC Circuit shown below. Assume the...

    I need help with Matlab code. Thank you Consider the RC Circuit shown below. Assume the excitation is a 10 kHz sine wave with amplitude of 1 volt. Derive expressions for the voltages across the resistor and the capacitor as time functions. Plot the voltages across the resistor and the capacitor over two periods using MATLAB and a reasonable time interval (eg, = T 20) Capture the plot and paste it as Figure 1 in the report form

  • can you write a matlab code PROJECT DELIVERABLE 1: In Project Deliverable 1, you will write...

    can you write a matlab code PROJECT DELIVERABLE 1: In Project Deliverable 1, you will write a Matlab code to automatically run your Simulink model where two parameters change, and save the performance index. Finally, youu plot the corresponding performance index as a 3D plot. Step 1) Build the following system in Simulink and name it as "FirstOrderSystem_ProjectGroupnumber.mdl". Finrderte Diegram S dion oulo Ro Cede Helps Md re Prrd K sebr Stro Transter Ecn gdet 100% Ready In this system,...

  • Please use matlab, post the code, and dont just write the code by hand. Thank you!...

    Please use matlab, post the code, and dont just write the code by hand. Thank you! 4 [3 points] Use the function f(x on the interval [5, 5] and the 11 points below to find a N-10 Lagrange polynomial, using MATLAB. You will need to write code for and plot the polynomial as a function of x, but you do not have to write the polynomials down by hand 5 0 2 3 4 5 f(x) | 0.0399 | 00623...

  • I NEED THE MATLAB CODE NOT THE ANALYTICAL SOLUTION !!!! using ZIR and 5.1 Use Matlab...

    I NEED THE MATLAB CODE NOT THE ANALYTICAL SOLUTION !!!! using ZIR and 5.1 Use Matlab to find and plot the total response for the differential equation ZSR approach. (D2 +5D 6)y(t)x() where x(t) e-2t sin( 10t) u(t), and the initial conditions are: yo (0)-1 and уо (0)-2.

  • PLEASE HELP! I need to write a MATLAB code for this Euler approximation for finding the...

    PLEASE HELP! I need to write a MATLAB code for this Euler approximation for finding the velocity of a parachutist at given time iterations. The answers are provided so you can check to see if the code works. I need to see it done in actual MATLAB program so I can understand the coding methodology better. 1.) Euler Method (estimated time 11min) For the second-order drag model (see Eq. (1)), compute the velocity of a free-falling parachutist using Euler's method...

  • I need help with the matlab code, thank you. The purpose of this assignment is to...

    I need help with the matlab code, thank you. The purpose of this assignment is to illustrate one important difference between linear and nonlinear models of oscillating systems. In an undamped, unforced linear system, the period of a periodic solution depends only on system parameters and not on the initial conditions, but in a nonlinear system the period can depend on the initial conditions Consider the following nonlinear differential equation, which models the free, undamped motion of a block attached...

  • I need to write a matlab code that solve this system of equations: x = 0.768(110-z)...

    I need to write a matlab code that solve this system of equations: x = 0.768(110-z) x = 1.344(y-40) x = (75*(1-0.004*t))*0.008522185*(((110-y)-(z-40))/ln((110-y)/(z-40))) for t from 100 to 250 with 1000 increment! Note that ln is natural log, I don't know what it should be in matlab!

  • Circuit Analysis: Need help writing this into MATLAB. I do not need it in paper I need help putting it into MATLAB. * DO NOT WRITE ON PAPER* Please use MATLAB and post your code. Thank you. My work c...

    Circuit Analysis: Need help writing this into MATLAB. I do not need it in paper I need help putting it into MATLAB. * DO NOT WRITE ON PAPER* Please use MATLAB and post your code. Thank you. My work completed. Please help me in make code for the above circuit ^. Here is my work for Part 3 that is needed to complete this part 4. ( could not solve the last part) Part 4. AC Solution by Phasor Analysis...

  • Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to...

    Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...

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