Hi Mohammed,
The MATLAB code for BER (Bit Error Rate) performance of Binary ASK Digital Modulation can be found at the link provided below to the MATLAB File Exchange. This code provides an analysis of the BER performance for the Binary ASK modulation technique with an AWGN (Additive White Gaussian Noise) channel:-