Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello! My problem is the following: I have a sorted sequence of "n" points (for each point I know the coordinates (x,y,z)) and now I should link each point "i" to the next point "i+1", just to draw a 'line'(in 3 dimensions..) composed of "n-1" segments...Can anyone tell me what tool should I use? Or any kind of suggest? (I think for example with Matlab it should be possible to do this, but I never worked with Matlab and I'm in crisis!!)
Thanks for your help!-mauri-

The obvious quick and convenient way to do what you want is with gnuplot:
gnuplot> splot "datafile" with lines
This will bring up a rotatable, zoomable 3d cartesian coordinate system in a window with the polyline defined by the points in the text file "datafile" drawn in red.
I can't help you with Matlab - I've used Scilab (similar syntax,capabilities etc.) but but even then I'm not sure how to draw 3d polylines with it.

Thank you very much Wolf!Now I searched Google for 'gnuplot' and I found this site: http://sourceforge.net/project/showfiles.php?group_id=2055&package_id=1996&release_id=231440
where I can download the software. But what file I have to choose? I'd prefer a version for MS Windows (compatible with XP)..Can you help me(again..)?
Thank you!-mauri-

The gp400win32.zip file should be the right one. You'll see instructions and information in the README.Windows file.

![]() |
control video streaming b...
|
compare / interpret 2 str...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |