How make 3D

  • Follow


Hi all,

In this problem, I need to plot my data into 3D graph. But still cannot. My data is following:

X = [0:2:18]; % 10 data
Y =[5, 7, 15, 27, 4, 12, 23, 42, 14, 21]; % 10 data
Z = (-72.8,166.8); % one point data

Basically, I also need surface color and contour. I hope any body can help me. Thank for time and appreciation.

Regards,

Kate
0
Reply myphysics2010 (69) 7/19/2005 12:13:38 PM

In article 
<10356442.1121764448771.JavaMail.jakarta@nitrogen.mathforum.org>,
 "myphysics2010@yahoo.com" <myphysics2010@yahoo.com> wrote:

> In this problem, I need to plot my data into 3D graph. But still cannot. My 
> data is following:
> 
> X = [0:2:18]; % 10 data
> Y =[5, 7, 15, 27, 4, 12, 23, 42, 14, 21]; % 10 data
> Z = (-72.8,166.8); % one point data
> 
> Basically, I also need surface color and contour. I hope any body can help 
> me. Thank for time and appreciation.


You made no sense here.

It sounds like you might be saying you have scattered
data points (x,y,z), but then the length of x, y, and z
are not the same. Is there missing data? If so, then
you only have two points that are not missing. They
cannot define even the simplest surface. Even 10 data
points are hardly adequate to represent a surface of
any complexity. Finally, without understanding something
about what the data means, and the relationship between
points in the set, it is impossible to create any
surface. (For any set of more than 3 arbitrary points
in a 3-d space, one can generate many fundamentally
different surfaces.)

So what do you have? What surface do you want to
represent? Contours of what function?

HTH,
John D'Errico


-- 
The best material model of a cat is another, or
preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945
0
Reply woodchips (7921) 7/19/2005 4:24:00 PM


Thanks your explain.

Basically my problem is the point (-72.8,166.8). This a coordinate (latitude, longitude) and this point just only one-data. Secondly, how to do the latitude and longitude as a point in graph, caused the size X,Y,Z must be same?

If, I try use : Z=ones(1,10)*(-72.8); % get 10 data, and then use : plot3(X,Z,Y); This method, cannot display contour. I also can't implement meshgrid function for this case.

Actually, I want to plot my data (Y = surface temperature) in spatial (Z) and temporal (X). So, I need graph in 3D with contour or layer above surface on the graph.

However, good appreciate for you and I need real solution from you or other matlaber's. I think you can help me.

Thanks and regards,

Kate
0
Reply myphysics2010 (69) 7/20/2005 7:29:20 AM

In article 
<33096006.1121833790319.JavaMail.jakarta@nitrogen.mathforum.org>,
 "myphysics2010@yahoo.com" <myphysics2010@yahoo.com> wrote:

> Thanks your explain.
> 
> Basically my problem is the point (-72.8,166.8). This a coordinate (latitude, 
> longitude) and this point just only one-data. Secondly, how to do the 
> latitude and longitude as a point in graph, caused the size X,Y,Z must be 
> same?
> 
> If, I try use : Z=ones(1,10)*(-72.8); % get 10 data, and then use : 
> plot3(X,Z,Y); This method, cannot display contour. I also can't implement 
> meshgrid function for this case.
> 
> Actually, I want to plot my data (Y = surface temperature) in spatial (Z) and 
> temporal (X). So, I need graph in 3D with contour or layer above surface on 
> the graph.
> 
> However, good appreciate for you and I need real solution from you or other 
> matlaber's. I think you can help me.

I may be able to help you (a little). Better data would
help you far more than anything I can offer.

You have surface temperature measurements at one position
in space, taken over time. You want to see a plot that
shows how temperature varies both with space and time. 
But you have absolutely NO information that shows the
variation of temperature with location. So you cannot
plot a surface. At most you can plot temperature as a
function of time, i.e.,

  plot(X,Y,'-o')

So I'll suggest the same thing that I frequently have
in the past to my clients: you need more data. I'll
admit that clients rarely have been able to satisfy my
thirst for data. In your case, you do NEED more data,
temperature measurements at points that vary over both
space and time. 

HTH,
John


-- 
The best material model of a cat is another, or
preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945
0
Reply woodchips (7921) 7/20/2005 10:26:53 AM

Dear John D'Errico,

For you known, I have data temperature with sampling every hour in every day. But, my observation is static position (just only one value). All data can't display here.

I hope from you, get me a hint, how to plot surface with assumption:
X is time [0..24] % one day
Y is space [ones(24,1)*166.8]; or [ones(24,1)*(-77.2)]; This method true or false?
Z is surface temperature [25*rand(15,1)]; % example

I think, plot(X,Z,'-o') is ok, but this current unnencesery; I need surface plot or contour, for display position of temperature both space and time.

I don't know and comfuse, may be any other idea and suggest to me. Thanks for kindliness and good self.

Regards,

Kate
0
Reply myphysics2010 (69) 7/22/2005 12:39:49 PM

4 Replies
89 Views

(page loaded in 0.088 seconds)

Similiar Articles:













7/16/2012 2:58:58 AM


Reply: