Professional Documents
Culture Documents
Experiment. 2
Apparatus:
1. Personal Computer
2. MATLAB software
Theory
MATLAB is a high-performance language for technical computing. It integrates
computation, visualization, and programming in an easy-to-use environment where
problems and solutions are expressed in familiar mathematical notation.
Code:
clc;
clear all;
close all;
n=0:1:25;
x=exp(0.2*n);
subplot(3,1,1),stem(n,x);
xlabel('n'),ylabel('x(n)');
title('real exponential sequence-22bec80011');
n=0:1:50;
z=exp(0.1*n+i*0.2*n);
subplot(3,1,2),stem(n,z);
xlabel('n'),ylabel('z(n)');
title('complex exponential sequence-22bec80011');
n=0:1:50;
z=exp(0.1*n+i*0.2*n);
subplot(3,1,3),stem(n,z);
xlabel('n'),ylabel('z(n)');
title('real and complex exponential sequence-2bec80011');
n=0:1:50;
Output:
University Institute of Engineering
Department of Electronics & Communication Engineering
--------------<>--------------