Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me in doing this vector plot

Status
Not open for further replies.

kollurulp

Mechanical
Apr 2, 2004
12
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
 
Replies continue below

Recommended for you

change ur units as first step
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))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor