ezcontour() does not plot
이전 댓글 표시
I have a distribution with a 1x2 mean vector and a 2x2 covariance matrix. I am trying to display the distribution using ezcontour().
m = [10, 3];
S = [1, 0.7; 0.7, 1];
figure;
G = gmdistribution(m,S);
F = @(x,y) pdf(G,[x y]);
ezcontour(F,[-10,20]);
However, the plot I get is something like this:

Why is this happening? Can you please help me?
답변 (1개)
Walter Roberson
2018년 3월 26일
1 개 추천
fcontour(F, [-10, 20]) works, if you have R2016a or later
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!