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!