Important to note this that this is a function file not script, you need to pass parameters to execute this program.
Explaination of parameters is as follow
A = amplitute of cosine signal
fm = frequency of cosine signal
fs = sampling frequency
n = number of bits per sample
y = binary output
MSE= Mean Squar error
QNoise = Quantization Noise
[y Bitrate MSE Stepsize QNoise] = pcm(2,3,20,3)
or
y = pcm(2,3,20,3)
####===========================================