DSB-SC Amplitude Modulation program scilab-code

Aim: Write scilab code to get the DSB-SC Amplitude Modulation 

Requirements: PC with Scilab software

Program:

Clf
F1=input(‘enter the baseband signal frequency’)
F2=input(‘enter the carrier signal frequency’)
Fs=input(‘enter the sampling frequency’)
T=input(‘enter the duration of signal’)
t=0:T/Fs:T
m=cos(2*%pi*F1*t)        // use %pi=&pi for MATLAB
c=cos(2*%pi*F2*t)
M=m.*c
Plot(t,m,t,M)