clc; x = -3*pi:0.01:3*pi; %y = funcion_rectangular(x); y = funcion_rectangular_parametros(x,-5,0,5); subplot(2,1,1); plot(x,y,"r"); grid on; xlabel("X","fontsize",20); ylabel("Y","fontsize",20); title("Funcion Rectangular","fontsize",20); %y = funcion_triangular(x); y = funcion_triangular_parametros(x,-5,0,5); subplot(2,1,2); plot(x,y,"r"); grid on; xlabel("X","fontsize",20); ylabel("Y","fontsize",20); title("Funcion Triangular","fontsize",20);