How to fix an error from accumarray?
3 ビュー (過去 30 日間)
古いコメントを表示
Pradya Panyainkaew
2018 年 2 月 7 日
コメント済み: Pradya Panyainkaew
2018 年 2 月 7 日
I have val and subs variables as I shown you and I try to group subs values into same cell array asnd return val to me. When I run this code
A = accumarray(subs,val,[],@(x) {x})
the Matlab software shows this error "Error using accumarray First input SUBS must contain positive integer subscripts.". Thus, I want to know how can I fix it out ?
Thanks in advance
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!