I want to make a code for M-ary generic amplitude shift keying encoding and decoding so that the value of M should be taken from the user.
Can anyone please tell me how to make it generalize i have made the code for binary amplitude shift keying but i don't know how to generalize it