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:
Flat plane in 3D plot

Subject: Flat plane in 3D plot

From: frankie tsoi

Date: 18 Jan, 2010 09:07:04

Message: 1 of 2

Hi,

May I ask whether anyone knows how to plot something like x = 1 in a 3D space with matlab? in other words, a vertical plane... Thanks a lot.

frankie

Subject: Flat plane in 3D plot

From: Jan Simon

Date: 18 Jan, 2010 11:47:03

Message: 2 of 2

Dear Frankie

> May I ask whether anyone knows how to plot something like x = 1 in a 3D space with matlab? in other words, a vertical plane... Thanks a lot.

You can create a PATCH or SURACE object. For both you need the coordinates of the corners instead of the equation. E.g.:
  patch([1,1,1,1], [1,0,0,1], [1,1,0,0], 'g')
  view(3)
The X-coordinates are all 1, as wanted.

Good luck, Jan

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