clear all close all clc t = -10:0.1:10; s = tanh(t); figure(1) plot(t,s,'-b') grid xlabel('tempo t [s]') ylabel('segnale s(t)=tanh(t)') title('Plot di una tangente iperbolica') b = 3; s1 = tanh(t-3); s2 = tanh(t+3); figure(2) plot(t,s1,'-r',t,s2,'-g') grid xlabel('tempo t [s]') legend('traslazione dx','traslazione sx') a = 3; s3 = tanh(t/a); s4 = tanh(a*t); figure(3) plot(t,s,'-b') grid xlabel('tempo t [s]') hold on plot(t,s3,'--r') plot(t,s4,'-.g') hold off