Plot and compare probability distribution (3 Dimension) in matlab

1 次查看(过去 30 天)
Dear Experts,
How to plot and compare probability distribution (3 Dimension) in matlab. Is there any specific function in matlab.
Many thanks in advance for you help
regards
SM

回答(3 个)

Daniel Shub
Daniel Shub 2011-12-8
Do you mean your probability distributions depend on 3 dimensions (x,y,z) or two dimensions (x,y) with the probability being the third?
If you probability only depends on x and y, then you could use mesh
doc mesh
If you need an additional dimension, you could look at conditional probabilities, things like P(x,y|z), and use mesh. You could also try and parameterize the distributions. MATLAB can help you do all these things, but you need to know what you want to do.
  2 个评论
Sayanta
Sayanta 2011-12-8
Hi Daniel,
I would like to explain my problem in details:
I want to plot probability distribution from two system A and B. A is observed data of a system. B is the output of an algorithm. Both data are probability distribution of 5 dimension. I want to plot the probability distribution. Is there any matlab function can plot the distribution. I try to use probplot in matlab but doesn't work.
A =
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 0 0
0 0 1 0 0
B =
1.0000 0 0 0 0
0.8667 0.0267 0.0667 0.0267 0.0133
0.8425 0.0422 0.0806 0.0231 0.0116
0.8415 0.0455 0.0792 0.0225 0.0112
0.8426 0.0451 0.0787 0.0224 0.0112
0.8427 0.0449 0.0786 0.0225 0.0112
0.8427 0.0449 0.0786 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
Daniel Shub
Daniel Shub 2011-12-8
You cannot visualize 5 dimensions. 2 dimensions is trivial, three is easy, 4 is doable (for example with slices or time), 5 is not practical. You need to do some sort of dimension reduction (e.g., PCA)

请先登录,再进行评论。


Sean de Wolski
Sean de Wolski 2011-12-8
figure;
subplot(121);
mesh(A)
subplot(122);
mesh(B)
?

Yesid Goyes
Yesid Goyes 2011-12-12
hello. you must used SLICE
doc slice
I have this problem for seismic data.

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by