%matlab code for digital modulation(ask, fsk and psk) pi=3.14; f=5; f2=10; phi=pi; x=[1 0 1 1 0]; nx=size(x,2); i=1; while i