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?

Risposte (1)

Walter Roberson
Walter Roberson il 26 Mar 2018

1 voto

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

Categorie

Richiesto:

DG
il 26 Mar 2018

Risposto:

il 26 Mar 2018

Community Treasure Hunt

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

Start Hunting!

Translated by