Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Apr 2, 2004
Messages
12
Location
DE
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
 
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

Back
Top