The Matlab Code and the corresponding figure is as follows:
MATLAB CODE:
t = 0:0.001:1 ;
y= (2*cos((8*t)-(pi/4)))+1 ;
figure
plot(t,y)
FIGURE:
To plot a figure of a function y=f(t) in an interval a and b in MATLAB,...
Plot the following function on MATLAB h(t) = cos(pi*t/2) -2 <= t < -1 1 + t3 -1 <= t < 0 1 0 <= t < 1 1 + sin(2*pi*t) 1 <= t < 2 0 elsewhere
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)|...
Exercises: u used to the instructor b the end of next lab. 20 102 Plot the f(t)-sinc(20r) cos(300t)sinc (10t) cos(100t) Use the fast Fourier transform to find the magnitude and phase spectrum of the signal and plot over an appropriate range. Use appropriate values for the time interval and the sampling interval. Note that in Matlab sinc(x)-, so we need to divide the argument by n to make it match the given function. Le, sinc(20t/pi) Hint: Use the parameters from...
write a matlab script for a generic ramp function r(t) then plot for y=ramp(t,3,0). The variable t is in the interval-5<t<5 and increments in steps of 0.01 function y = ramp(t,m,ad). %t= time support, m= ramp slope, ad = signal advance(positive)/delay(negative)
a) Use MATLAB to find the Fourier Transform F(w) of the following function f(t). b) Plot F(w). Express the x-axis in [Hz]. Plot for f = -8Hz to 8Hz. f(t) = cos(27 (34))e-**" 0.8 0.6 0.4 0.2 f(t) appears to oscillate at 3 cycles/sec 0 -0.2 -0.4 -0.6 0.8 -1 2 -1.5 -0.5 0 0.5 1 1.5 2
Write a MATLAB script to plot the function of f(x) given by: Write a MATLAB script to plot the function of f(x) given by: f(x) = integral x^2 - pi^2/4 x > pi/2 8 * cos x -pi/2 lessthanorequalto x lessthanorequalto pi/2 pi^2/4 - x^2 x < -pi/2
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
In MATLAB plot the following: The function is periodic, with time period 2T=2, after t=2 the same sinusoidal components repeat in the same way as when 0 st < 2. The function its expanded from one time period 27, in terms of the sinusoidal components. All sinusoidal components have frequencies which are integral multiples of the fundamental frequency. 1 1 = = = 0.5Hz to = fo = cot I am cos(womt) + b, sin(wont) m=1 rad wo = 2nfo...
You are given a finite step function xt=-1 0<t<4 1 4<t<8. Hand calculate the FS coefficients of x(t) by assuming half- range expansion, for each case below. Modify the code below to approximate x(t) by cosine series only (This is even-half range expansion). Modify the below code and plot the approximation showing its steps changing by included number of FS terms in the approximation. Modify the code below to approximate x(t) by sine series only (This is odd-half range expansion).. Modify...
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...