I have added 2 different MATLAB files where "receive_cdm.m" is my main code and "y_send.mat" is a file I am getting some values from it and loaded it in main code section.

If you look at the code then I have assigned 1 parameter c1. Forget about other parameters.

The following tasks are explained in the code.

I have done it with proper MATLAB commands and equations.

But, I am getting error when I calculate it manually and matching it with MATLAB calculations. (What I should get and what I am getting from MATLAB)

Can anyone check my code, please..?

It would be very helpful for me.

## Best Answer