Please.. make NOTES the answer .. should be like Creating Phasor signals e* = co
ID: 2085802 • Letter: P
Question
Please.. make NOTES
the answer .. should be like
Creating Phasor signals e* = cos x +jsinx 2j INLAB Report (4): Generate a time variable from 0 to 1 [sec] in 0.001[sec] step size. . Draw x ()=2ea with respect to time using MATLAB plot Draw y) Re(2e with respect to time using MATLAB plot Drawz)-Im(2e) with respect to time using MATLAB plot Describe the difference in x,(t), y,(t), and z,(t) in your own words. Use clear all to clear previously used variables. Use doc subplot to find out syntax for plotting multiple signals. limits to (0 to 1) for x-axis, (-3 to 3) for y-axis. Use figure(1), figure(2), figure(3)... to open multiple plot windows. . Use doc axis to find out syntax for limiting x, y axis in plot. Set your . Use doc subplot to find out syntax for plotting multiple signals.Explanation / Answer
clear all;
t = 0:0.001:1;
x1t = 2*exp(1i*2*pi*t);
y1t = real(x1t);
zt = imag(x1t);
subplot(3,1,1);
plot(t,x1t);
title('x1(t)=2exp(j2pit)');
axis([0 1 -3 3]);
subplot(3,1,2);
plot(t,y1t);
title('x2(t)=Re{x1(t)}');
axis([0 1 -3 3]);
subplot(3,1,3);
plot(t,zt);
title('x3t=Im{x1(t)}');
axis([0 1 -3 3]);
x1(t) = 2exp(i2*pi*t) = 2*cos(2*pi*t)+2*i*sin(2*pi*t); x1(t) contains imaginary values, matlab ignores imaginary values while plotting and plots only real values, that is why plot 1 and plot 2 are same which is 2*cos(2*pi*t) and z(t) is imaginary part which is 2*sin(2*pi*t)