clc; %x = -10:0.01:10; x = linspace(-10,10,500); y = lineaxy(x,-pi,pi,3); %plot(x,y,"r","linewidth",4); plot(x,y,".r"); grid on; xlabel("X","fontsize",20); ylabel("Y","fontsize",20); title("Funcion Rectangular","fontsize",20); text(-pi,-2.8,'-\pi',"fontsize",16); text(pi,-2.8,'\pi',"fontsize",16);