Continue to Site

# About rotation of vector by an angle in MATLAB

Status
Not open for further replies.

#### ganesh449

##### Junior Member level 1
Hi friends,
In my MATLAB project regarding "Non-minutiae based fingerprint images matching" i have a scenario,in which

step1: I have to extract the feature vector of a trained image and similar way i have to extract the feature vector of a testing image.

step2:After that i have to calculate angle of rotation θr by using test and trainee images feature vectors.I calculated that value.

step3: The test feature vector obtained in step1 is rotated by θr to obtain rotated feature vector of the test input image.

Now i was strucked at the rotation of the feature vector.How to rotate a vector with an angle.

I am also attaching the paper which i am doing.

Thanks,
RVL.Ganesh.

#### Attachments

• Nonminutiae Based Fingerprint Matching.pdf
323.6 KB · Views: 122

ganesh,try the following......

U can type "help rotate" in MATLAB to get help. here is the help content:

ROTATE Rotate objects about specified origin and direction.
ROTATE(H,[THETA PHI],ALPHA) rotates the objects with handles H
through angle ALPHA about an axis described by the 2-element
direction vector [THETA PHI] (spherical coordinates).
All the angles are in degrees. The handles in H must be children
of the same axes.

THETA is the angle in the xy plane counterclockwise from the
positive x axis. PHI is the elevation of the direction vector
as the righthand-rule angle about the direction vector as it
extends from the origin.

ROTATE(H,[X Y Z],ALPHA) rotates the objects about the direction
vector [X Y Z] (Cartesian coordinates). The direction vector
is the vector from the center of the plot box to (X,Y,Z).

ROTATE(...,ORIGIN) uses the point ORIGIN = [x0,y0,y0] as
the center of rotation instead of the center of the plot box.

OR

Rotating a vector by theta means multiplying this by a unit vector with the angle theta.
See if the below link helps
Rotation (mathematics) - Wikipedia, the free encyclopedia

ALL THE BEST....................

ganesh449

Points: 2