2D surface plot

3 次查看(过去 30 天)
Sami
Sami 2011-6-16
[EDIT: 20110621 11:03 CDT - merge duplicate - WDR]
hallo,
i have an m*n cell matrix that contains a x*4 matrix in each cell.
i want to draw a surface plot, a contourf to be precise, in which the color value is the number of the rows of which are composed the matrixes in the cells,according to the value of the y and z coordinates, that are unique for each cell in thee big m*n cell matrix. the y and z coordinates are written in the 2nd and 3d column of each x*4 matrix (in easy terms, a map of the x value all around the cell matrix acording to the y and z of the cells )
hope that somebody can help me, and hope that the message was clear enough.
thanks in advance.
Sam
[Material from duplicate question]
hallo,
i have an m*n cell matrix that contains a x*4 matrix in each cell.
i want to create a 2d color surface in which the color value is the number of the rows of which are composed the matrixes in the cells,according to the value of the y and z coordinates, that are unique for each cell in thee big m*n cell matrix. the y and z coordinates are written in the 2nd and 3d column of each x*4 matrix (in easy terms, a map of the x value all around the cell matrix acording to the y and z of the cells )
So if in the 1st cell I have a matrix with 3 rows, I want that on the map a certain color is shown and if in another cell I have a matrix with 54 rows I want another color on the map. the map will be an y z planar surface according to the values of the 2nd and 3rd column of the x*4 matrix contained in each cell.
thanks
  2 个评论
Anthony Smith
Anthony Smith 2011-6-17
To clarify: you want to go into the m*n cell matrix; "the number of the rows" is equal to the x value in each x*4 matrix; and you want to plot unique (x,y,z) sets? Or just unique x values regardless of y and z?
Sami
Sami 2011-6-20
Actually I want to plot a planar surface that shows me, in the correct y and z position how many rows I have in each cell of the m*n matrix, witha color map. SO if in the 1st cell I have a matrix with 3 rows, I want that on the map there is a color and if in another cell I have a matrix with 54 rows I want another color on the map. the map will be an y z planar surface according to the values of the 2nd and 3rd column of the x*4 matrix contained in each cell.
hope that is more clear now
thanks

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2011-6-21
Please do not create duplicate questions. I have deleted your newer version.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by