Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

Complex Exponential Signal in MATLAB | M-file

%Complex Exponential Signal in MATLAB
close all;
clc;
n=-20:20;
alfa=-0.1+0.3j;
x_n=exp(alfa*n);
subplot(4,1,1);
stem(n,real(x_n));
xlabel('Time Samples');
ylabel('Real Part');
subplot(4,1,2);

stem(n,imag(x_n));
xlabel('Time Samples');
ylabel('Imaginary Part');
subplot(4,1,3);
stem(n,abs(x_n));
xlabel('Time Samples');
ylabel('Magnitude');
subplot(4,1,4);
stem(n,angle(x_n));
xlabel('Time Samples');
ylabel('Phase');


No comments

Popular Posts

Followers