Got Questions? Get Answers.
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:
combine contours of xy and yz plane

Subject: combine contours of xy and yz plane

From: kumar vishwajeet

Date: 30 May, 2012 02:37:06

Message: 1 of 2

Hi,
I have contours for the pdf of a chaotic system(Lorentz attractor). I drew the contours in xy plane and yz plane. Now I want to combine these contours of xy plane and yz plane together to show the beautiful nature of this chaotic system. How can I combine these two contours to show a 3-d contour in xyz plane?? Is it even possible??
Thanks.

Subject: combine contours of xy and yz plane

From: Roger Stafford

Date: 30 May, 2012 03:21:07

Message: 2 of 2

"kumar vishwajeet" wrote in message <jq414i$5dh$1@newscl01ah.mathworks.com>...
> Hi,
> I have contours for the pdf of a chaotic system(Lorentz attractor). I drew the contours in xy plane and yz plane. Now I want to combine these contours of xy plane and yz plane together to show the beautiful nature of this chaotic system. How can I combine these two contours to show a 3-d contour in xyz plane?? Is it even possible??
> Thanks.
- - - - - - - - - - - -
  I haven't tried this, mind you, but I would think you could use 'plot3' to plot each individual contour of the two sets in 3D with z and then x held to the appropriate constants in the two respective groups of contours, and create something similar to the displays exhibited by 'surf'. You may have to resort to for-loops with "hold on" to accomplish this. If your contours are reasonably closely-spaced, it should create an effective display. The trouble with using 'surf' itself is that that routine requires some kind of rectangular grid for its inputs, which you presumably don't have. With 'plot3' you can repeatedly use three vectors as inputs to traverse all the contours and they don't have to have equal lengths from one contour to the next.

Roger Stafford

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