COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### 3d matrix - level's plot

• Email
• Follow

```Hi, I have a problem with a 3d matrix. I have a 59x59x16 matrix, called "data", conteining, for ex, relative humidity. I have 16 layers, every layer conteins a 59x59 point-grid and every point has his particular humidity value.
Using: dataLayern=data(:,:,n)
image(dataLayern)
I created a 2D image of a single layer; a low rh is connected with a light color, an high one to a darker color.

Now I need to create a 3D image, composed by the 16 layers overlapped.
Any ideas?
```
 0

See related articles to this posting

```
"Stefania " <stefania.bolla@gmail.com> wrote in message
news:jq8kgq\$ngj\$1@newscl01ah.mathworks.com...
> Hi, I have a problem with a 3d matrix. I have a 59x59x16 matrix, called
> "data", conteining, for ex, relative humidity. I have 16 layers, every
> layer conteins a 59x59 point-grid and every point has his particular
> humidity value.
> Using: dataLayern=data(:,:,n)
>         image(dataLayern)
> I created a 2D image of a single layer; a low rh is connected with a light
> color, an high one to a darker color.
>
> Now I need to create a 3D image, composed by the 16 layers overlapped.
> Any ideas?

ISOSURFACE?

http://www.mathworks.com/help/techdoc/ref/isosurface.html

Or take a look at the MRI examples in the Volume Visualization
documentation -- it sounds like you're doing a similar type of "stacking" to
what those examples show.

http://www.mathworks.com/help/techdoc/visualize/f5-6010.html

--
Steve Lord
slord@mathworks.com
http://www.mathworks.com

```
 0
Reply slord (13686) 6/1/2012 1:43:42 PM

1 Replies
21 Views

Similar Articles

12/12/2013 2:17:09 PM
[PageSpeed]

Similar Artilces:

3D Plot => Matrix
Hi there, is it possible to copy the actual 3D-Plot into a Matrix. So one can create a graph with whatever method, copy it to a matrix and after that manipulate the matrix? THX Theo Hi, what do you mean by "3D-Plot" ? J�r�me Any 3 dimensional plot. J�r�me wrote: > > > Hi, > > what do you mean by "3D-Plot" ? > > J�r�me Theo wrote: > > > Any 3 dimensional plot. > > J�r�me wrote: >> >> >> Hi, >> >> what do you mean by "3D-Plot" ? >> >> J�r�me Is this what you're looking for...

Matrix 3D surf Plot
Hi all, I am trying to generate a surf plot for the data i obtained through system analysis. Been through the instruction but dont really understand how to plot the system using the data i have. Need help!!! angle changes from left to right, acceleration goes down in the first column, the rest is the force associated with the angle and acceleration. any help would be appreciated. Angle=> 0 15 30 Accl 0.25 56.86875 641.561549 1186.4085 0.5 113.7375 698.430299 1243.27725 0.75 170.60625 755.299049 1300.146 1 227.475 812.167799 1357.01475 1.25 284.34375 869.0...

Plot data matrix in 3D
Hello I have a data matrix of dimension [nxm]. Each row refers to a given value on the x-axes and each columns to a given value on the y-axes such that I have other two vectors X[n] and Y[m]. How can I plot it in 3d? thank you in advance "Paolo " <tarpanelli@libero.it> wrote in message <hha2s2\$ght\$1@fred.mathworks.com>... > Hello > > I have a data matrix of dimension [nxm]. Each row refers to a given value on the x-axes and each columns to a given value on the y-axes such that I have other two vectors X[n] and Y[m]. > > How can I plot it i...

3D Plot of function with paremeters from matrix

[plot] Updating matrix data in plot
Hello everyone! I have a little problem. I plot a matrix data and then I want to update 'xdata' and 'ydata' by using 'set'. This code explains my problem: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% x = [1 1 2 2 1; 5 5 6 6 5]; y = [1 2 2 1 1; 5 6 6 5 5]; h = plot(x',y'); %I plot some (i this example two) rectangles. axis([0 7 0 7]); x = x+1; %I add a constant to make an illusion of movement. y = y+1; %As above. set(h,'xdata',x','ydata',y') % <- error %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% When I use 'set'...

plotting 2D image in a 3D plot
I'm going mad because I am sure it is easy to do what I want to do, but I can't find any clues in the docs how to do it. I have a set of geographic data - lat long and height. But the area is restricted enough that I can plot as x y and z without any projection. I want to plot them in a 3-D plot, with a 2-D image plotted on the XY plane. The 2D image is a geotiff file, so can be used with all the mapping functions. Any suggestions would be welcomed. If you're trying to use image or imagesc, and then calling 3D plot functions afterward, that won't work. Use surf or pcolor ...

plotting two 3D surface plots error
I am ploting 2 3d surface plots separately. One plots ok, the 2nd is giving me an error - plot number is out of range. Both plots have the same plot number - (1). Both are plotting similar data. Why is is one failing? Greetings, John! I would first check the obvious things, like are you running out of memory? 3D charts can use a huge amount of it. Perhaps you can plot a couple of smaller data sets on your charts and see if you get the same error. You might also try a wiregrid format, instead of color, since color uses up a lot more memory. Just a couple of hints. Er...

transformation same matrix 2d to 1 matrix 3d
hi how do i do to transformation 100 matrix 2 dimension to one matrix in 3 dimension thiago wrote: > hi > how do i do to transformation 100 matrix 2 dimension to one matrix in 3 dimension First create an empty 3D-matrix of the size needed: matrix3D=zeros(size(matrix1,1),size(matrix1,2),100); Then fill the different slices of that matrix with the 100 2D-matrices. matrix3D(:,:,1)=matrix1; matrix3D(:,:,2)=matrix2; matrix3D(:,:,3)=matrix3; .... Use a for-loop if possible. Pieter thiago wrote: > hi > how do i do to transformation 100 matrix 2 dimension to one matrix in 3 d...

Creating a 3d plot consisting of a set of bar plots
Dear All, I think my question might be standard, but I am unable to find the answer. I have made a fairly intricate bar plot and would like to make several variations on this and plot them all in 3d. Say I have 3 bar plots. I would like to put these together in a 3d plot so plot 1 lies in a y-z plane, located at x=0 plot 2 lies in a y-z plane, located at x=5 plot 3 lies in a y-z plane, located at x=10 So I'm sort of looking for three walls, one in front of the other, each wall is one of my bar plots. Ideally, I'd like to create each bar plot separately, then giv...

3D plots
I've been looking at making volumetric data from vectors of X,Y,Z and R. X and Y are UTM co-ordinates, and Z describes 5 different elevations at each XY couple. For each XYZ point there is a data value R. I start by arranging x and y so that there is a seperate data point for each z, i.e the same x and y co-ordinates are repeated 5 times to cover each elevation. I define regular 3D grids with meshgrid by using the max and min of each X Y Z value with the linspace function, e.g: xv=linspace (min(X),max(X), res) [Xi,Yi,Zi]=meshgrid(xv,yx,zv) and use griddata3 to grid R across my ...

Plotting a matrix
Suppose we have a matrix A with zeros and ones, maybe A = floor(rand(N)+0.5). How can I draw or plot this so that each 1 become a dot and each 0 become nothing? I want to view the matrix graphically (it represents a cellular automata). / Thanks for any help! Hi John, try >> spy(A) Titus "john" <nomail@noserver.com> wrote in message news:40867585\$1@puffinus.its.uu.se... > Suppose we have a matrix A with zeros and ones, maybe A = > floor(rand(N)+0.5). > > How can I draw or plot this so that each 1 become a dot and each 0 become > nothing? I want ...

plotting in 3D
Hi, I have a text file, x y z value 0.5 0.5 0.5 1.6 1.5 1.8 6.6 3.8 ..... ..... how can I plot this as a 3D plot? if I have something of the form z = f(x,y), then i create a mesh grid with x and y and use "surf" or something... I am not sure how to do this one. A wrote: > I have a text file, > > x y z value > 0.5 0.5 0.5 1.6 > 1.5 1.8 6.6 3.8 > .... > .... > > how can I plot this as a 3D plot? scatter3 >if I have something of the form...

Single matrix from 3D space to a screen pixel? Viewport matrix?
Hi, I'm trying to get a single matrix (in my own matrix data structure) that I can use to convert points from 3D space to their respective screen pixel coordinates exactly as the current openGL matrices are doing. I can easily get the projection and modelview matrices from openGL, but the viewport transformation info comes as screen width, height, x, and y values, not a matrix. Is there some way to make a matrix from this info? Is there a way to just get the complete, combined matrix that openGL is using to do its complete 3d-point-to-pixel transformation? I see on this page: http:/...

plot 3D
Je souhaiterais visualiser en 3D la repr=E9sentation dans l'espace couleur = RVB des points d'une image. Je poss=E8de donc 3 matrices R V B.<br>Le nuage= de points est encadr=E9 par un paral=E9ll=E9pip=E8de. Je souhaiterais incr= uster cette figure sur la visualisation pr=E9c=E9dente. <br>Merci ...

Plotting date-time series in 3D how to handle date-time to plot
I have a year's worth of time series data that I would like to plot in 3d using ListPlot3D. ListPlot3D does not accept the system formatted dates like the 2D utility DateListPlot. Q1. What is the best way to plot this type of time series in 3D where the date-times may cross January 1 and two or more years? A week's worth of data is appended. I have previously been doing this by converting raw csv data file's date-time to a Julian Day in Excel and then importing to Mathematica. I would like to simplify things by doing the entire import and plot routine in Mathematica dir...

3D curve plot
In 3Dcurve plot when the size of points is big enough and the position of the curve is such that some of the points are superimposed how to make difference which point is in front and which back. Are there same way to make a visible contour on the point or shadow/light to apreciate the position? Hi, I found no way of setting the shadding option on 3D plot. Zvezdana S. Hi Zvezdana, Dobro utro I was playing with lighting and that can approach considerably, but I think the best way to show which point is in front/back by making a contour available with different color. That will help understan...

Plotting 3d data
Hello everyone, I've got data which includes includes x, y, z position and light intensity in data file (example below). -1995.510728 -3810.634328 201.434235 0.231255 -1985.307836 -3810.634328 201.434235 0.221061 -1975.338153 -3810.634328 201.434235 0.266298 -1965.426772 -3810.634328 201.434235 0.282227 -1955.340485 -3810.634328 201.434235 0.267573 -1945.487407 -3810.634328 201.434235 0.274581 -1935.459422 -3810.634328 201.434235 0.273307 -1925.606343 -3810.634328 201.434235 0.266935 -1915.636660 -3810.634328 201.434235 0.303890 -1905.608675 -3810.634328 201....

3D matrix indexing
Hi, this is probably very simple but I can't figure it out. I have a 3D matrix, from which I want to select several vectors in the following way: if A is the matrix, I want to select list a vectors A(r,c,:), where r and c are are lists of numbers for the first and second subscript of A. To give an example for A = 3x3x4: r = [3, 2, 3] c = [2, 1, 3] The result should be a matrix of the form A(3,2,1) A(3,2,2) A(3,2,3) A(3,2,4) A(2,1,1) A(2,1,2) A(2,1,3) A(2,1,4) A(3,3,1) A(3,3,2) A(3,3,3) A(3,3,4) FYI this is for a Markov process model in which A is the transition matrix for 2 reacting spe...

3d surface plot
Hi, I searched the web and newsgroups for several hours now, but could not find a solution to my problem. I want to do a 3d surface plot in my vb6 program. i have the z values for several x,y coordinates. I think it's not possible to do this with MSchart. Since it's 3d charts are only made to make 2d plots look fancier. Is there any function or 3rd party module to get a real 3d surface plot? I think it is possible by sending the data to excel and do it there, but i want to refresh the plot several times per second and I fear, that the excel way is too slow for that. Another proble...

3D plot #22
Hi All, Using the surf or mesh command produces a plot with n-1 x m-1 squares, from a matrix of n by m values, which is not what I want. How can I produce a surf plot or similar, with n x m squares, from a matrix of n x m values. I need to plot the airflow (m/s) through a radiator, where the radiator surface is divided into unequal areas. Example data: (x=0 to 3) (x=3 to 4) (y=0 to 1) 2.5 2.7 (y=1 to 3) 2 3 Many thanks as I'm quite stuck at the moment, Manny Doit The surf command plots the given points in 3D, connects the points by lines and colors the generated polygons. The...