Write MATLAB code to plot the following waveforms
For ? and ?, choose any values that make sense.
For ?, ?, and ?, choose any values that make sense
Ans)
%================MATLAB CODE===============
t=-5:0.01:5;
%=======Signums (a)=======
x1=sign(t); %sgn(t) signum function
figure
plot(t,x1,'LineWidth',2)
title('sgn(t)')
grid on
%===========(b)============
T=1;
x2=sign(t-T);
figure
plot(t,x2,'LineWidth',2)
title('sgn(t-T)')
grid on
%===========(c)============
A=2;
x3=A*sign(t-T);
figure
plot(t,x3,'LineWidth',2)
title('A*sgn(t-T)')
grid on
%=======causal exponential (a)============
a=1;
T=1;
A=2;
t=-5:0.01:5;
x4=exp(-a*t).*heaviside(t);
figure
plot(t,x4,'LineWidth',2)
title('exp(-at)*u(t)')
grid on
%=======causal exponential (b)============
x5=A*exp(-a*t).*heaviside(t-T);
figure
plot(t,x5,'LineWidth',2)
title('A*exp(-at)*u(t-T)')
grid on
%======================================


plots are





Write MATLAB code to plot the following waveforms Signums: ???(?) ???(? − ?) ? ⋅ ???(?...
Write MATLAB code to plot the following waveforms. Rectangular pulses: ????(?) ????(? − ?) ????(?/?) For ? and ?, choose any values that make sense. Triangular pulses: Δ(?) Δ(? − ?) Δ(?/?) For ? and ?, choose any values that make sense.
Write MATLAB code to plot the following waveforms. Impulse approximation: δ(?) δ(? − ?) For ?, choose any value that makes sense. Unit steps: ?(?) ?(? − ?) ? ⋅ ?(? − ?) For ? and ?, choose any values that make sense
Hello
Only need the answer of question 5 and 6 also with the
graph.
Write MATLAB code to plot the following waveforms. Submit your code and plots in a single PDF file. 1. (8 pts) Rectangular pulses: a. rect(t) b. rect(t-T) c. rect(t/t) For T and T, choose any values that make sense. 2. (12 pts) Triangular pulses: a. A(C) b. At-T) C. Aſt/t) For T and T, choose any values that make sense. 3. (8 pts) Impulse approximation: a....
Use Matlab to plot two cycles of the following ) waveforms: a. yi(t) = sin(200m) volts b· pd) =-1.0+ cos(2000m) volts c. y)--1.0 to 3.0 volt square wave at 1,000 Hz Then use Matlab to compute the max, min, average, and rms values for each of the signals listed above.
Part a: Write a Matlab code that generate Exponential Function. Part b Write a Matlab code that generate sinusoidal Function. Part c Write a Matlab code that generate Unit Ramp delay (shift) function
Problem 4 For Poisson's ratio of 0.3, write a MATLAB code to plot the principal stress and maximus shear for two spherical bodies in contact
Problem 4 For Poisson's ratio of 0.3, write a MATLAB code to plot the principal stress and maximus shear for two spherical bodies in contact
write a code please
Problem 1 Write MATLAB programs to find the following sums with for loops. (a) 12 + 22 + 32 + ... ... ... + 10002. (b) 1 –}+*+*+.........-1003 Problem 2 Make two separate plots of the function f(x) = 0.6x5 – 5x3 + 9x + 2; one plot for -4 < x < 4, and -2.7 < x < 2.7. Plot by creating vectors.
MATLAB question I need the code
exactly as you would write it in MATLAB. thank you
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...
Write a Matlab code that is able to plot the frequency response
for the given circuit.
Tvoo Ro Vinot - Vout . Vout 9m Vin Ro = CL Vin EMEL hu (b)
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...