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
Walter Roberson 2018 年 3 月 26 日

1 投票

fcontour(F, [-10, 20]) works, if you have R2016a or later

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

質問済み:

DG
2018 年 3 月 26 日

回答済み:

2018 年 3 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by