how draw mean and cov matrix?

1 次查看(过去 30 天)
alex
alex 2022-10-20
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 个评论
Benjamin Kraus
Benjamin Kraus 2022-10-21
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?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by