Below given is a program to generate an exponential signal.The program is almost self explanatory.

Notice the difference by replacing plot() with stem().

**%Program to generate the exponential sequence**

**n=input('Enter the duration of the signal N = ');****a=input ('Enter the scaling factor a = ');****t=0:.1:n-1;****y=exp(a*t);****plot(t,y);****ylabel ('Amplitude');****xlabel ('Time Index');****TITLE ('Exponential Signal');**

Notice the difference by replacing plot() with stem().

## 12 comments:

hi anil.. its a good attempt.. i dint know abt ur blog.. nd you have worked out all this problems.. nice..

thanks a lot for your support.

thanks it helpd me

Warning: Function F:\dev&dev\Documents\MATLAB\plot.m has the same name as a MATLAB builtin.

We suggest you rename the function to avoid a potential name conflict.

Warning: Function F:\dev&dev\Documents\MATLAB\plot.m has the same name as a MATLAB builtin.

We suggest you rename the function to avoid a potential name conflict. what mean by this please i m NEW FOR MATLAB xlable and ylable commands are not working problem is......??? Undefined function or method 'ylable' for input arguments of type 'char'.

can any1 write the code for real exponential sequence and imaginary exponential sequence.

can any1 write the code for real exponential sequence and imaginary exponential sequence.

syapa nirra

nice one how about digital exp signal ?

t=pi:0.1:2*pi;

e=exp(t);

subplot(6,1,6)

plot(t,e)

explain this plzz:t=0:.1:n-1

explain this plzz:t=0:.1:n-1

iterate from 0 to (n-1) by increments of 0.1.

n is an user input.

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in MATLAB, kindly contact us http://www.maxmunus.com/contact

MaxMunus Offer World Class Virtual Instructor led training on MATLAB. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.

For Demo Contact us.

Nitesh Kumar

MaxMunus

E-mail: nitesh@maxmunus.com

Skype id: nitesh_maxmunus

Ph:(+91) 8553912023

http://www.maxmunus.com/

## Post a Comment