MATLAB
Posts  1 - 1  of  1
abhijit1981
Hi All,

I am very new in the MATLAB programming . Actually my task is to migrate MATLAB code into C++ code . I would like to appreciate if any one can help me to understand MATLAB.

Np=size(p,1);
N = sum(ind);
N1 = sum(v1);
in=zeros(Np,1);
in(ind)=(1:N)';
in1=zeros(Np,1);
in1(v1)=(1:N1)';

can any one tell me what exactly value gets copied into the in , in1 matrix?

I have not understood what exactly following lines are doing,
in(ind)=(1:N)';
in1(v1)=(1:N1)';

Note : ind and v1 are the arrays(input values).

Thanks in Advance.

Regards
Abhijit Nimbalkar
Save
Cancel
Reply
 
x
OK