Machine learning program question

조회 수: 3 (최근 30일)
Mohamed Ahmed
Mohamed Ahmed 2016년 8월 2일
댓글: CHANDRU G 2020년 5월 30일
The program I'm asking my question about is in that link: http://read.pudn.com/downloads197/sourcecode/macos/928928/CancerDiagnosis.m__.htm
Now, what does this command do exactly:
testmat= matrix(idtest,:);
and why it's not giving this error:
Subscript indices must either be real positive integers or logicals.
  댓글 수: 1
CHANDRU G
CHANDRU G 2020년 5월 30일
x=x+3; data.Xval=data.Xval +3; Multiply the values in the X variable of the table letter by the aspect ratio of 1.5.Reassign the result back to X so that letter contains the corrected data

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

답변 (1개)

Image Analyst
Image Analyst 2016년 8월 3일
  댓글 수: 5
Walter Roberson
Walter Roberson 2016년 8월 4일
The original idtest is not all zero. You can use
[row, column] = find(idtest)
to see the row and column of the one (and only one) non-zero entry in it.
Mohamed Ahmed
Mohamed Ahmed 2016년 8월 4일
Thanks very much.

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by