How to simplify the for loops and if statement in this code
1 回表示 (過去 30 日間)
古いコメントを表示
How to simplify for loops and if statements.
1 件のコメント
dpb
2020 年 6 月 23 日
Please restore the original post -- there's no context for others going forward now.
採用された回答
dpb
2020 年 6 月 19 日
Straightahead w/o trying to save some recomputations that could be done by complements--
k=[sum(A==B & A==0,'all') sum(A==B & A~=0,'all');sum(A~=B & A==0,'all') sum(A==B & A==1,'all')];
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!