Message Boards Message Boards

0
|
5646 Views
|
6 Replies
|
3 Total Likes
View groups...
Share
Share this post:
GROUPS:

3d plot a matrix

Posted 9 years ago

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] )// TableForm

Any ideas?

POSTED BY: fary farfar
6 Replies

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 BY: Sean Clarke
Posted 9 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 BY: fary farfar
Posted 9 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 BY: fary farfar

Please see the documentation for ListPlot3D:

https://reference.wolfram.com/language/ref/ListPlot3D.html

Is this what you want? What about ListPointPlot?

https://reference.wolfram.com/language/ref/ListPointPlot3D.html

Without an example, I can only really guess at what you are talking about. If these don't work, please include:

  1. A simple example of the kind of input you want.
  2. A sketch of the kind of output you want.
POSTED BY: Sean Clarke
Posted 9 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 BY: fary farfar

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.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract