Você está na página 1de 1

%libro:signals and systems____seccion 3.

4_____ejercicio 7
clearvars
close all
clc
%SISTEMA y(t)=x(t)+x(t-1)
t=-3:.1:3;
% x1=heaviside(t);
% x2=heaviside(t-1);
% y=x1+x2;
%ADITIVIDAD
x3=heaviside(t);
x4=heaviside(t-1);
a1=2;
a2=2;
z=a1*x3+a2*x4;
y1=z;
%HOMOGENEIDAD
z1=x3+x4;
z2=x3+x4;
y2=a1*z1+a2*z2;
plot(t,y1,'r','LineWidth',2);hold on; %ADITIVIDAD
grid on;
grid minor;
pause(1);
plot(t,y2,'b','LineWidth',2);hold on; %HOMOGENEIDAD
% plot(t,y,'r','LineWidth',2);
%%%%%%%%%%%%%%%%%%%%%% NO ES LINEAL EL SISTEMA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%

Você também pode gostar