Generation of Normal Sinusoidal, Discrete Sinusoidal, Under Damped and Over Damped Signals using MATLAB

 MATLAB Codes

Basics of Matlab

Generation of Normal Sinusoidal, Discrete Sinusoidal, Under Damped and Over Damped Signals using MATLAB

Generation of Normal Sinusoidal Signal

Matlab Code:

f=1;

w=2*pi*f;

t=0:0.01:10;

y=sin(w*t);

plot(t,y);

xlabel('time in sec');

ylabel('amplitude in cm');

title('Normal Sinusoidal Signal');

grid on;

 


Generation of Discrete Sinusoidal Signal

 Matlab Code

f=1;

w=2*pi*f;

t=0:0.01:10;

y=sin(w*t);

stem(t,y);

xlabel('time in sec');

ylabel('amplitude in cm');

tile('Discrete Sinusoidal Signal');

grid on;

 



 Generation of Under Damped Signal

Mat lab Code 

a=0.5;

t=0:0.01:10;

y=exp(-a*t);

plot(t,y);

xlabel('time in sec');

ylabel('amplitude in cm');

title('Under Damped Signal');

grid on;



 Generation of Over Damped Signal

Mat lab Code:

a=0.5;

t=0:0.01:10;

y=exp(a*t);

plot(t,y);

xlabel('time in sec');

ylabel('amplitude in cm');

title('Over Damped Signal');

grid on;

 

 


 Thank you for visiting the blog.

I hope this blog provided you the required knowledge.

If you have any doubt then let me know in the comment section.

Visit my You Tube channel for detail explanation: https://www.youtube.com/channel/UCz6QRsRatNV6AiUOOF82MRA

 Like, share and follow for more such blogs.

Topics covered in this blog:

how to generate sine wave in matlab simulink 
discrete sine wave equation 
matlab frequency of sine
generate sine wave examples 
pulsed sine wave matlab

Comments

Popular posts from this blog

Generation of Damped Sinusoidal, Unit Step, Ramp and Impulse Signal