Please help me in doing this vector plot
Please help me in doing this vector plot
(OP)
The below data is a sapme data. I should plot a vector plot so that i will get lines connecting XPos,XPos+Cor(x) and YPos,YPos+Cor(y).And the units for X and Y are millimeters and for Cor(x) and Cor(y) are in nano meters.
XPos YPos Cor(x) Cor(y)
(mm) (mm) (nm) (nm)
35.154 -61.32 3 0
20.088 -61.32 -10 9
5.022 -61.32 -1 9
-10.044 -61.32 -12 8
-25.11 -61.32 6 1
-40.176 -61.32 -18 5
-60.264 -43.8 -4 0
-45.198 -43.8 0 3
-30.132 -43.8 -6 10
-15.066 -43.8 1 15
XPos YPos Cor(x) Cor(y)
(mm) (mm) (nm) (nm)
35.154 -61.32 3 0
20.088 -61.32 -10 9
5.022 -61.32 -1 9
-10.044 -61.32 -12 8
-25.11 -61.32 6 1
-40.176 -61.32 -18 5
-60.264 -43.8 -4 0
-45.198 -43.8 0 3
-30.132 -43.8 -6 10
-15.066 -43.8 1 15





RE: Please help me in doing this vector plot
of corse u know how to write a vector on matlab
cor(x)=10e-6*[3 -10 -1 -12 6 -18 -4 0 -6 1]
cor(y)=......... similarly
now all lenghts are in mm
u can use do the following
plot(Xpos,Xpos+cor(x))
hold on
plot(Ypos,Ypos+cor(y))