Saturday, June 25, 2011

MATLAB Programs 03: Generating an exponential signal

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


%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:

oleena said...

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

Anil C S said...

thanks a lot for your support.

Kumari Shradha said...

thanks it helpd me

Anonymous said...

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'.

Anonymous said...

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

Anonymous said...

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

Anonymous said...

syapa nirra

Ζογράφος Γρηγορέλης said...

nice one how about digital exp signal ?

Anonymous said...

t=pi:0.1:2*pi;
e=exp(t);
subplot(6,1,6)
plot(t,e)

Anonymous said...

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

Anonymous said...

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

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

n is an user input.

Nitesh Kumar said...

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

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes