MATLAB: How to solve this problem

checkcodehelpMATLAB

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.

Here, I provided the answer based on following
"I want to multiply "data1" with "c1" row to row and bit to bit values.
I am using this code for this : "result = bsxfun(@times, c1, data1);
As all the values are "1" in c1.
So, the result values should be as "data1"."
The code
demultiplex_data_y1=bsxfun(@times, c1, y_send); 
Here c1
c1 =     1     1     1     1
And y_send
>> whos y_send  Name              Size             Bytes  Class     Attributes  y_send           1200000x4      38400000  double   
bsxfun @times do the .*Array multiply with to two arrays with implicit expansion enabled. When you do the array operation with any element with "1" you suppose to get the same result, right. Hence in the following code, y_send and demultiplex_data_y1 must be same, because c1 having with all "1" elements
demultiplex_data_y1=bsxfun(@times, c1, y_send); 
If you comapare the two array, you should be get the true "1" logic
>> isequal(demultiplex_data_y1,y_send)ans =  logical   1
If I misunderstood this question, let me know, if I can help you it would be great for me