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에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!