Thread Subject: combining two graphs into one

Subject: combining two graphs into one

From: Kwadwo Dompreh

Date: 20 Aug, 2008 08:08:02

Message: 1 of 5

Hello,
I have two graphs in 2D but want to combine them into one
3D using matlab. How can i do this please help Thanks

Subject: combining two graphs into one

From: Walter Roberson

Date: 20 Aug, 2008 16:05:06

Message: 2 of 5

Kwadwo Dompreh wrote:

> I have two graphs in 2D but want to combine them into one
> 3D using matlab. How can i do this

"combine them" -how-? I can think of a number of different ways
to combine two 2D graphs into a 3D graph. For example, given
images (or drawings) of the same object from two different positions
(known relative to the object), it is not uncommon to wish to "combine"
the two images or drawings to model what the original object looks
like in 3D.

-Exactly- what kind of objects are used in the graphs? And what
do you expect their spacial relationship to be once in 3D ?
--
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end

Subject: combining two graphs into one

From: Kwadwo Dompreh

Date: 22 Aug, 2008 08:43:05

Message: 3 of 5

Hi Walter,
Thanks for the reply, it didn't show on my mail that is why
it has taken me sometime to reply. well I am faced with a
problem and that is how can i draw a 3D graph out of two 2D
graphs. I am using a bessel equation with two varing fields.
Using the meshgrid function does not give me the expected
graph. if u have basic knowlege in Physics then i can send
you the equation and the graphs so that u can see where i
have gone wrong.
Walter Roberson <roberson@hushmail.com> wrote in message
<SgXqk.200185$gc5.149792@pd7urf2no>...
> Kwadwo Dompreh wrote:
>
> > I have two graphs in 2D but want to combine them into
one
> > 3D using matlab. How can i do this
>
> "combine them" -how-? I can think of a number of
different ways
> to combine two 2D graphs into a 3D graph. For example,
given
> images (or drawings) of the same object from two
different positions
> (known relative to the object), it is not uncommon to
wish to "combine"
> the two images or drawings to model what the original
object looks
> like in 3D.
>
> -Exactly- what kind of objects are used in the graphs?
And what
> do you expect their spacial relationship to be once in
3D ?
> --
> Q = quotation(rand);
> if isempty(Q); error('Quotation server filesystem
problems')
> else sprintf('%s',Q), end

Subject: combining two graphs into one

From: Walter Roberson

Date: 25 Aug, 2008 16:43:34

Message: 4 of 5

Kwadwo Dompreh wrote:
> well I am faced with a
> problem and that is how can i draw a 3D graph out of two 2D
> graphs. I am using a bessel equation with two varing fields.
> Using the meshgrid function does not give me the expected
> graph. if u have basic knowlege in Physics then i can send
> you the equation and the graphs so that u can see where i
> have gone wrong.

I am unable to be of further assistance until you answer
the questions from my previous response. I am still left with
no clue as to what kind of handle graphic objects are present
in your 2D graphs, or as to what kind of handle graphic objects
you want the resulting 3D graph to be.


--
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end

Subject: combining two graphs into one

From: Andy

Date: 29 Jun, 2010 14:23:05

Message: 5 of 5

Walter,
I am having a similar problem that Kwadwo had. The 2d plots I am trying to concatenate into a 3d volume are field maps of a magnetic field. I started with a 64x64x64 matrix whose values displayed the field strength at the coordinate mentioned and I wish to graph them as a 3d volume, into which I can zoom and rotate. I am trying to use imagesc to get the 2d slices for each z value and then concatenate them together. Is this possible, and if so, how should I go about doing it?
Thank you

Walter Roberson <roberson@hushmail.com> wrote in message <WiBsk.36926$hx.14962@pd7urf3no>...
> Kwadwo Dompreh wrote:
> > well I am faced with a
> > problem and that is how can i draw a 3D graph out of two 2D
> > graphs. I am using a bessel equation with two varing fields.
> > Using the meshgrid function does not give me the expected
> > graph. if u have basic knowlege in Physics then i can send
> > you the equation and the graphs so that u can see where i
> > have gone wrong.
>
> I am unable to be of further assistance until you answer
> the questions from my previous response. I am still left with
> no clue as to what kind of handle graphic objects are present
> in your 2D graphs, or as to what kind of handle graphic objects
> you want the resulting 3D graph to be.
>
>
> --
> Q = quotation(rand);
> if isempty(Q); error('Quotation server filesystem problems')
> else sprintf('%s',Q), end

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us at files@mathworks.com