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

Thread Subject:
Plot a frustum

Subject: Plot a frustum

From: Paulo

Date: 29 Apr, 2009 10:57:01

Message: 1 of 2

Hi everyone.

I would like to know how to plot a frustum ? And would be great if i could change its dimensions and angles.

If is not possible a frustum, maybe if you know how to plot a pyramid can be suffice.

Can anyone help me?

Thank you a lot.
Best regards

Subject: Plot a frustum

From: Sean

Date: 6 May, 2009 02:25:03

Message: 2 of 2

"Paulo " <paulofreitas7@portugalmail.pt> wrote in message <gt9bpt$obp$1@fred.mathworks.com>...
> Hi everyone.
>
> I would like to know how to plot a frustum ? And would be great if i could change its dimensions and angles.
>
> If is not possible a frustum, maybe if you know how to plot a pyramid can be suffice.
>
> Can anyone help me?
>
> Thank you a lot.
> Best regards

Try using PATCH. You can specify faces and vertices. Changing the dimensions etc. is more complicated. You would have to use

% in your GUI
H = patch(...)

% in some callback in your GUI, change the values.
set(H,'Faces',faceValues,'Vertices',vertValues...)

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us