How can i make the sum of matrix elements>0 under the condition that there are min 3 zeros between the sums?
古いコメントを表示
I hava a matrix: a=[2 3 0 0 4; 0 0 0 0 0; 0 5 3 0 4; 14 4 0 1 1; 0 0 0 0 0; 0 0 0 7 9; 0 0 0 0 0; 0 0 0 0 0; 9 6 0 0 1; 1 1 1 0 0];
How can i make the sum of elements>3, under the condition that there are at least 3 zeros between the last element of one and the first element of the next sum?
Output should be: E=[9 32 16 19]
thanks!
2 件のコメント
Azzi Abdelmalek
2016 年 4 月 23 日
How did you get this result?
Image Analyst
2016 年 4 月 23 日
Next sum? Why is there more than one sum??? Looks like you need to read this before you fix your post.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Univariate Discrete Distributions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!