Using matlab, create a 3-D plot of the wave equation y(x,t)= cos(omega*t-beta*x) .Plot for a time range from t=0 to t=2T and a space range of x=0 to x=2lambda
f=100; w=2*pi*f; a=1; x=linspace(-5,5,50); t=linspace(0,2,50); for k = 0.05:0.01:2 % Change values of e.g. k n = a.*cos(k.*x-w.*t); % Re-calculate n pause(0.02) % pause to control animation speed s = surf(x,t,repmat(n,[length(t),1])); % Use repmat to make Z 2D title(['k = ',num2str(k)]) % Just some nice settings for surf plot shading interp lighting phong camlight left; camlight right; camlight left; camlight right; colormap copper alpha(.8) end
In the above code you can easily change the values of x and t according to the values set by you for OMEGA and lambda and the curve will be plot accordingly.
Alternatively, I have a simpler code:'
k=0.05; f=100; w=2*pi*f; a=1; [x,t]=meshgrid(-5:1:5,0:2:20); n=a.*cos(k.*x-w.*t); surf(x,t,n);
Here's the plot which comes up :-
Using matlab, create a 3-D plot of the wave equation y(x,t)= cos(omega*t-beta*x) .Plot for a time...
Using Matlab, plot the following ultrasound pressure wave as a function of x for t = 1 P(t, x) = P_0 e^- x cos(omega t - beta x) Where alpha = 0.1 neper/m, where neper is a dimensionless quantity, beta = 1 rad/min, omega = 1 red/s, P_0 = 10 N/m^2. Submit your ".m" file as the resulting graph labeled appropriately.
Consider the following wave function: y(x, t) = cos(kx - omega t). a. Show that the above function is an eigenfunction of the operator partialdifferential^2/partialdifferential x^2[...] and determine its eigenvalue. b. Show that the above function is a solution of the wave equation expressed as partialdifferential^2 y(x, t)/partialdifferential x^2 = 1/v^2 partialdifferential^2 y(x, t)/partialdifferential t^2, given the wave velocity is v = omega/k (where omega = 2 pi V and k = 2pi/lambda).
Using matlab, create and plot the following signals for time t = -10 to t=10. 40(t) = cos(0.5πt) × rect 2 [t-40
MATLAB ICA 1: a) Using plot3, plot x, y and z given by the follow equations, for the range oft of 0.1, with R-10, r = 1.8, d :0.8, and a = 0.5: 0 to 200 in steps x(t) = (R-r) * cos (t) + d * cos R -r 佇r.r) . y(t) = |(R _ r) * sin(t) + d * sin (__ * t)|*cos (a * t) 2(t) = [A-r) * sin(t) + d * sin (--* t)|...
3. The system represented by the block diagram below modulates the message signal x(t) with a carrier wave c(t) to yield -(). The signal y(t) is generated by multiplying z() by the carrier wave c(t). c(t) c(t) y(t) z(t) The output signal,y(t), can be written as y(t)-C() × X() x C(t). Using the properties of a) Fourier Transforms, write Yi) in terms of Cjo) and Yj). [2 points] The Fourier Transform of x(t) is illustrated below. 0.9 0.8 0.7 0.6...
In MATLAB please Consider the nonlinear function: y = f(x) = x3 cos x a. Plot y as a function of x as x is varied between -67 and 67. In this plot mark all the locations of x where y = 0. Make sure to get all the roots in this range. You may need to zoom in to some areas of the plot. These locations are some of the roots of the above equation. b. Use the fzero...
Wave Packets (a) Create a wave by adding two different waves by using Matlab, but different combination than those we used in the class. Paste the output graph (and also the code). Any two waves can be chosen, but explain the difference compared to the original wave packet we obtained in the class. You can modify the code I used in the class, or build something from scratch. (b) Add as much waves as you want (minimum:3), using Matlab. Explain...
Using Matlab; Please show written program to execute and instructions to create plot: 1. Create a vector of x values from 0 to 20 pi, with an increment of pi/100. y=x sin (x) and z= x cos (x) a) create a figure window with two subplots. In first subplot create an x versus y plot and in the second subplot create an y versus z plot. b) create a polar plot of x and y. Add title and labels to...
A traveling wave equation is given by : y(x,t) = 5 Cos (rex - 2t) m. The velocity of the traveling wave is : (1/5) m/s O (5/) m/s none of them O(2/) m/s (1/2) m/s
Please include code Use Matlab (or octave) to plot a direction field for the differential equation 3. sin(t) y'cos(t) y = e Use a plot that allows t to range from 0 to T (not including the end points) One way to offset values a little bit is to add a small number to the endpoint or subtract a small number, so consider setting a 0+1E- 8 and b = m-1E-8 Use Matlab (or octave) to plot a direction field...