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

Adam
Adam 2019년 1월 9일
There's a 1.0e+03* above those values.
Stephen23
Stephen23 2019년 1월 9일
편집: Stephen23 2019년 1월 9일
"I dont have a class labeled 0.0010 or values like 0.0131 and 12.3700. They must be 1, 1.31, 12.37 "
Those are the values that you have, you just ignored the multiplier:
1.0e+03 * % <- you ignored this!
0.0131 0.0016 0.0025 0.0010
Feel free to change the format if you want a number format without a multiplier.
MB
MB 2019년 1월 9일
편집: MB 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.

댓글을 달려면 로그인하십시오.

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Document and Integrate Toolboxes에 대해 자세히 알아보기

질문:

MB
2019년 1월 9일

편집:

MB
2019년 1월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by