FM wave using scilab
t= 0:1/5000:0.1; // declare time interval Ec = 9; // amplitude of carrier signal Em = 4; // amplitude of modulating signal fc = 100; // carrier frequency fm = 30; // modulating frequency //Carrier signal Vc = Ec *sin (((2*%pi)*fc)*t); subplot (312); plot (t,Vc); title("Carrier signal"); xlabel('Time - s'); ylabel('Amplitude'); //Modulating signal Vm = Em * cos (((2*%pi)*fm)*t); // plot signal subplot (311); plot (t, Vm); title("Modulating signal"); xlabel('Time - s'); ylabel('Amplitude'); m1 = 1; // modulation index //Frequency modulated signal Vfm = Ec*sin(((( 2*%pi)*fc)*t)+m1*sin(((2*%pi)*fm)*t)); subplot (313); plot (t,Vfm); title("Modulated-wave"); xlabel('Time - s'); ylabel('Amplitude'); another way.......... vm=input (" Enter the value of Modulating Signal voltage");//vm=5 fm=input (" Enter the value of modulating Signal frequency");//fm=25 vc = input (" Enter the value of carrier Signal voltage");// vc = 5 fc = input (" Enter the value of carrier Signal frequency");//fc=400 m = input (" Enter the value of modulation index") ; //m=5 // G e n e r a ti o n of c a r r i e r s i g n a l v1 = vc * sin (2* %pi * fc * t ) ; subplot (312) ; plot (t , v1 ) ; xlabel "time" ylabel "Amplitude" title "carrier wave " // g e n e r a t i o n o f M o d u l a t i n g w a v e v2 = vm * sin (2* %pi * fm * t ) ; subplot (311) ; plot (t , v2 ) ; xlabel "time" ylabel "Amplitude" title "Modulating wave" ; //Modulated Signal vfm = vm*( sin (2* %pi * fc *t +( m .* sin (2* %pi * fm * t )) ) ) subplot (313) ; plot (t , vfm ) ; xlabel "time" ylabel "Amplitude" title "modulated wave "
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.