Clear Filters
Clear Filters

how draw mean and cov matrix?

1 view (last 30 days)
alex
alex on 20 Oct 2022
Commented: Benjamin Kraus on 21 Oct 2022
I have 2 mean which is mu1=[1 1] and mu2=[1 0] and 2 2*2 cov matrix which is cov1=[1 0.2:0.2 0.5] and cov2=[0.4 0:0 0.5] ,how shoul I plot them and find best decision line?
  1 Comment
Benjamin Kraus
Benjamin Kraus on 21 Oct 2022
Can you elaborate on your question?
To start with, I think you meant to use semicolons (";") not colons (":") in your cov1 and cov2 matrices:
mu1=[1 1];
mu2=[1 0];
cov1=[1 0.2; 0.2 0.5];
cov2=[0.4 0; 0 0.5];
What exactly are you trying to plot?

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!