%calcolo di alcuni segnali notevoli % rihiede la funzione delta_unitaria.m (nella stessa cartella di lavoro) close all clear all; fs = 1000; % Number of samples per second tMin=-1; tMax=1; t = tMin:1/fs:tMax; % Time vector Tau=0.5 A=1 % rettangolare x1=A*(abs(t)=0); figure(5) plot(t,x5) % Plotting the pulse axis([tMin tMax min(x5) max(x5)*1.1]) xlabel('Time (sec)'); ylabel('Amplitude'); %semirampa x6=zeros(1,length(t)); x6=(-t+1).*(t/2>0); figure(6) plot(t,x6) % Plotting the pulse axis([tMin tMax min(x6) max(x6)*1.1]) xlabel('Time (sec)'); ylabel('Amplitude'); % exp x7=A*((t)>=0).*exp(-6*t); figure(7) plot(t,x7) % Plotting the pulse axis([tMin tMax min(x1) max(x1)*1.1]) xlabel('Time (sec)'); ylabel('Amplitude');