フィルターのクリア

confusion matrixes of 2 dimension

7 ビュー (過去 30 日間)
Tino
Tino 2019 年 5 月 3 日
回答済み: Jan 2019 年 5 月 3 日
Hello I am trying to do the following computation confusionmat
h = 5.1000 3.5000 1.4000 0.2000
6.4000 3.2000 4.5000 1.5000
5.4000 3.4000 1.7000 0.2000
5.7000 2.8000 4.5000 1.3000
5.7000 4.4000 1.5000 0.4000
5.6000 2.9000 3.6000 1.3000
k = 5.1000 3.8000 1.9000 0.4000
6.4000 2.9000 4.3000 1.3000
4.3000 3.0000 1.1000 0.1000
5.4000 3.0000 4.5000 1.5000
0 0 0 0
0 0 0 0
C = confusionmat(h,k);
I got the following errors below
Error using confusionmat (line 86)
First two arguments must be vectors or character matrices.
Error in zondo (line 166)
C = confusionmat(Training,Test1);
  1 件のコメント
Rik
Rik 2019 年 5 月 3 日
Your input is not a vector, but a matrix.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2019 年 5 月 3 日
Please read the error message: The first two inputs must be numerical vectors. The documentation explains the allowed inputs exhaustively:
doc confusionmat
It is impossible to give you an advice how to implement, what you actually want to compute, because you do not mention the purpose of the code.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by