I am trying to implement a MATLAB code which is iterating and accessing elements using vectorization of array. Code snippet is below:
z=z(1:2:end)+j*z(2:2:end);
where "z" is an array containing I/Q stream value i.e alternating i & q like "iqiqiqiq...". I am trying to implement it using numpy array but with no success.
Note: Also looking for suggestions regarding any other way to implement the above logic which is even faster than copying MATLAB approach using numpy array and python-3.x.