Converting Logical Indices into Real Values

2 ビュー (過去 30 日間)
MByk
MByk 2019 年 1 月 9 日
編集済み: MByk 2019 年 1 月 9 日
I am trying to seperate observations of each class (I have 2 classes) but somethings wrong with the answers. I dont have a class labeled 0.0010 or values like 0.0131 and 12.3700. They must be 1, 1.31, 12.37, etc. How can I fix the problem? Thanks for the help.
for i=1:nClasses
indx = DataSet(:,end)==i;
DataSet(indx,:)
end
  • Results for the 1st class:
  • 1.0e+03 *
  • 0.0131 0.0016 0.0025 0.0010
  • ........
  • Results for the 2nd class:
  • 12.3700 1.1700 1.9200 2.0000
  • ........
  4 件のコメント
MByk
MByk 2019 年 1 月 9 日
編集済み: MByk 2019 年 1 月 9 日
Only first one has 1.0e+03* multiplier.
Adam
Adam 2019 年 1 月 9 日
Yes, the second one already shows 'correct' values with no multiplier.

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

採用された回答

madhan ravi
madhan ravi 2019 年 1 月 9 日
編集済み: madhan ravi 2019 年 1 月 9 日

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by