简体   繁体   English

如何在Matlab中生成概率3D图

[英]How to generate probability 3D plot in matlab

I have already build my true random number generator and I want to visualised the results. 我已经建立了真正的随机数生成器,并且希望将结果可视化。 I am testing a lot of generators, each of then will generate a txt.file. 我正在测试很多生成器,然后每个生成器都会生成一个txt.file。 It is like 543 35 68 3 ... in the txt files. 就像txt文件中的543 35 68 3 ... I want to draw a 3D plot in matlab. 我想在Matlab中绘制3D图。 It should have 3 axes which are Probability of each number, Generators and Interval of random numbers See figure. 它应该有3个轴,分别是每个数的概率,生成器和随机数的间隔见图。 Those generators are 16 bits, so the biggist number is 65535. For example 30000 has been generated 10 times and this file has 100000 random numbers, so the probability of 30000 is 10/100000. 这些生成器为16位,因此biggist数为65535。例如,已生成10次30000,此文件具有100000个随机数,因此30000的概率为10/100000。 Any help is appreciated ! 任何帮助表示赞赏! Figure 数字

You can use surfplot in MATLAB. 您可以在MATLAB中使用surfplot。

More info: link 更多信息: 链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM