# 3d plot a matrix

Posted 8 years ago
5239 Views
|
6 Replies
|
3 Total Likes
|
 Hi everyone! I need to 3d plot a matrix. I want to make a 3d (i.e. scatter plot) out of 2d plots of each row of the following matrix: (Z2 = Pick[Z1, Table[If[OddQ[i + j], 1, 0], {i, 1, 201}, {j, 1, 201}],1] )// TableFormAny ideas?
6 Replies
Sort By:
Posted 8 years ago
 When asking a new question, it is best to ask it in a new post. This allows other people who might be able to help you to see the new question. You should not use NonlinearModelFit to estimate the parameters of a Multidimensional Gaussian distribution. You should use EstimateDistribution or something similar. Once you've estimated the distribution you can create a 3D plot using something like: Plot3D[PDF[MultinormalDistribution[....], x], ..........] And you can combine plots together using the Show command.BTW, I can't guess what your data looks like, but I'm guessing you should use the raw data with Histogram3D instead of a point plot.
Posted 8 years ago
 http://expirebox.com/download/001c9c77bde9bf47238279b3c81694bd.html This is my data which I 3d plotted and want to fit a 2D gaussian into.
Posted 8 years ago
 Thanks, I plotted the matrix with Listplot3D and now I want to fit a 2D gaussian into that 3D plot. (Using nonlinearmodefit). Any Ideas? http://community.wolfram.com/groups/-/m/t/549105?p_p_auth=hx2gLCdA
Posted 8 years ago
 Please see the documentation for ListPlot3D:https://reference.wolfram.com/language/ref/ListPlot3D.htmlIs this what you want? What about ListPointPlot?https://reference.wolfram.com/language/ref/ListPointPlot3D.htmlWithout an example, I can only really guess at what you are talking about. If these don't work, please include: A simple example of the kind of input you want. A sketch of the kind of output you want.
Posted 8 years ago
 It's a 2D matrix but I get a 2D plot from plotting one row (column number vs it's value) and I would get a 3D plot from plotting all those 2Ds for all rows altogether. I'm not sure how to do that.
Posted 8 years ago
 The code isn't complete. Is it a 3D matrix? If so, have you considered using Image3D?If not, please include a simple example of the kind of data you are trying to visualize.