multiply along
5 ビュー (過去 30 日間)
古いコメントを表示
~EDITED'
Hi there, I have a long matrix 1000 x 34 want to do the cumulative multiplication left to right to give a 1000 x 1 matrix then the sum of the multiplication going downwards. So like a sum function but multiplying each element going sideways then downwards.
EDITED THIS ANSWER HAS BEEN ANSWERED but need a follow on answer...
0 件のコメント
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 6 月 6 日
If the numbers are strictly positive, you could log() and cumsum() and exp() the result.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!