Assignments
Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title.
Generate and plot the function x2(t) = sin (30pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title.
Generate and plot the combination function x3(t) = x1(t)*x2(t) as above. Use proper axes labels with title.
Generate and plot the sum of two cosine waves v1(t) = cos(20pt) and v2(t) = cos(22pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title. Let x4(t) =v1(t) +v2(t).
Generate and plot the signal represented by x5(t) = e-0.1t sin (2t/3), for t ranging from 0 to 30 in 0.1 increments. Use proper axes labels with title.
Generate and plot the signal represented by x6(t) = sin (4pt)/ 4pt, for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title
Plot the function x7(t) = (1 – e -2t ) cos (60 pt). Use t from 0 to 0.25 in 0.001 increments. Use proper axes labels.
Plot a discrete-time signal x[n] using the following commands:
>> n= -2: 6;
>> x=[ 0 0 1 2 1 0 –1 0 0];
>> stem(n,x);
>> xlabel(‘n’);
>> ylabel(‘x[n]’);
>> title (‘ Plot of a discrete-time Signal’);
The force f(t) in newtons(N) in a certain industrial process increases with the square of time over a particular time interval and cab be expressed as
f(t) = 0.25 t2 .
Use MATLAB to plot the function from t=0 to t= 10 s.
Write MATLAB Program codes and Comments on your observation about each signal plot.
Use help command for all MATLAB commands to know the detail.
MATLAB commands used:
sin cos exp pi plot stem grid xlabel ylabel title
t=-1:0.001:1;
x1=1+sin(4*pi.*t);
plot(t,x1)
title('waveform for x1(t)')
xlabel('time')
ylabel('amplitude')
x2=sin(30*pi.*t);
plot(t,x2);
title('waveform for x2(t)');
xlabel('time');
ylabel('amplitude')
x3=x1.*x2;
plot(t,x3);
title('waveform for x3(t)');
xlabel('time');
ylabel('amplitude')
v1=cos(20*pi.*t);
v2=cos(22*pi.*t);
x4=v1+v2;
title('waveform for x4(t)');
xlabel('time');
ylabel('amplitude')
Multiple subparts
Get Answers For Free
Most questions answered within 1 hours.