Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Selecting data points in 3D space

Asked by Itzik Ben Shabat on 14 Dec 2012

Hi, I am plotting data points in 3d space. what i wish to do is allow a user to select a volume of interest. is there a function that allows to do this? I know that in 2d there are functions such as imrect() and inpolygon() that allow the user to draw a rectangle and then see which points are inside. is there a 3d equivalent to these functions?

0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Jürgen

Jürgen (view profile)

on 14 Dec 2012

Hi, in file exchange there is a file to extract a Volume of Interest, do no if that can help? regards,J

3 Comments

Itzik Ben Shabat on 14 Dec 2012

thanks. found it. ill give it a try and see how it works. from the documentation it seems like this is the 3d equivalent of inpolygon. do you know if there is a 3d equivalent to imrect() (in order to draw the cube volume of interest to be the input to the file you mentioned from file exchange).

Jürgen

Jürgen (view profile)

on 14 Dec 2012

I looked for the 3d version of inmrect when I saw your question but could not directly find something,

Sean de Wolski

Sean de Wolski (view profile)

on 14 Dec 2012

imrect() works in 3d but only along x/y

Jürgen

Jürgen (view profile)

Contact us