Project for Faculty (Gaussian distribution and estimation)
古いコメントを表示
I would much appriciate the correct response and the code that works on Matlab R2018a.
I need help generating normally distributed random vector X = [X1, X2]' with independent components that both have expactancy 0 and variances sigma1^2 and sigma2^2 (it is given, like in concrete values, but for the sake of generality to the code I don't need to specify values). Also, there needs to be N = 10^5 of those.
Let me say that I cannot use mvnpdf and those functions that are implemented in matlab, but only randn, rand, histogram, histcount and when it comes to plotting plot, stem, surf.
I have to divide the surface (x1,x2) into 20x20 elementary surfaces and to experimentaly estimate probability density function f^(x1,x2) into dots that are in the centers of these elementar surfaces. I have to also plot this f^.
4 件のコメント
Jon
2020 年 11 月 16 日
This sounds like a homework problem. Once you have tried writing some code if you are still having problems please attach your code and explain what problem you are having with your MATLAB code
Jovan Krunic
2020 年 11 月 16 日
Jovan Krunic
2020 年 11 月 16 日
Walter Roberson
2020 年 11 月 16 日
The "More About" section of the mvnpdf function gives the equation for it.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Exploration and Visualization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!