0% found this document useful (0 votes)
21 views5 pages

All 'Linewidth' On '/bffuncion Escalon'

The document contains MATLAB code that generates and plots various signal functions including: a step function, impulse function, ramp function, exponential functions with positive, negative, and zero exponents, and a combined stepped and delayed function. The code clears variables, generates time vectors, defines the functions, plots the functions with labels and axis limits, and pauses between each example.

Uploaded by

jhonnygarcia634
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views5 pages

All 'Linewidth' On '/bffuncion Escalon'

The document contains MATLAB code that generates and plots various signal functions including: a step function, impulse function, ramp function, exponential functions with positive, negative, and zero exponents, and a combined stepped and delayed function. The code clears variables, generates time vectors, defines the functions, plots the functions with labels and axis limits, and pauses between each example.

Uploaded by

jhonnygarcia634
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

clc

clear
close all
t= linspace(-10,10,1000);
u1t=3*heaviside(t);
plot(t,u1t,'Linewidth',2);
grid on
title('\bfFUNCION ESCALON')
YLIM([-4 4])
Pause
clc
clear
close all
t= linspace(-10,10,999);
u1t=dirac(t-2);
A=dirac(0)
plot(t,u1t,'Linewidth',2);
grid on
title('\bfFUNCION IMPULSO')
YLIM([-4 4])

Pause
clc
clear
close all
t= -10:0.01:10;
u1t=t.*heaviside(t+2)+2*heaviside(t+2);
plot(t,u1t,'Linewidth',2);
grid on
title('\bfFUNCION RAMPA')
YLIM([-4 12])
Pause
clc
clear
close all
t= -10:0.01:10;
a=0.5;
u1t=exp(a*t);
plot(t,u1t,'Linewidth',2);
grid on

title('\bfFUNCION EXPONENCIAL CON a POSITIVO')


YLIM([-4 12])
pause
clc
clear
close all
t= -10:0.01:10;
a=-0.5;
u1t=exp(a*t);
plot(t,u1t,'Linewidth',2);
grid on
title('\bfFUNCION EXPONENCIAL CON a NEGATIVO')
YLIM([-4 12])
pause
clc
clear
close all
t= -10:0.01:10;
a=0;
u1t=exp(a*t);
plot(t,u1t,'Linewidth',2);

grid on
title('\bfFUNCION EXPONENCIAL CON a = 0')
YLIM([-3 3])
pause
clc
clear
close all
t= -10:0.01:10;
a=0.05;
u1t=-5*t.*heaviside(t)+ 5*t.*heaviside(t-5);
plot(t,u1t,'Linewidth',2);
grid on
title('\bfEJEMPLO')

f(t)=-5*t u(t)+5t u(t-5)

EJEMPLO

-5

-10

-15

-20

-25
-10

-8

-6

-4

-2

10

You might also like