MATLAB: Processing purely imaginary numbers

compleximaginaryimaginary numbersnumber processingpurely imaginary

Hey,
I've got a vector of purely complex numbers (ie. the real component = 0). However the processing time of it is taking a long time and I think it's because MATLAB is doing conjugate multiplication. When I print out the vector is is in the form 0 + bi .. how can I make Matlab just read it as a purely imaginary number such as bi and process it quicker?
Thanks for your time, Alex.

Best Answer

You can just use
imag( myVector )
to get the imaginary part as a standard non-complex double and then do your maths on that, as though it where the imaginary component.