If you mean rotate a vector by 45° then multiply it by (1/2)i, where i = √(-1) to get a 45° anti-clockwise rotation.
Oops! No, this will give a rotation by 90° and halve the magnitude! You need to multiply by exp(i*pi/4).
Alan, I am not familiar with matlab but I am interested in this concept.
Can you try to explain it a little more please? Maybe with a picture.
Does the following help?
Basically we are treating a vector as a complex number with the x-component as the real part and the y-component as the imaginary part.
Thanks Alan,
oh, I didn't see the oops bit before so it makes a little more sense now.
Where do the numbers
0.7071 abd 3.5355 come from? Are they input or output?