Machine learning program question
3 ビュー (過去 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
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
2016 年 8 月 3 日
You can discover why once you look at this link. You might also like to look at the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_fix_the_error_.22Subscript_indices_must_either_be_real_positive_integers_or_logicals..22.3F
5 件のコメント
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.
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!