blkproc(w1,[size(w1,1) 2],@(x) prod(x(:) )
product in an array
1 次查看(过去 30 天)
显示 更早的评论
Hi all
Just a quick question, and will appreciate your help.
Suppose I have w=[a b c d e f] I want a new matrix that gives the product of every two consecutive elements. ie [axb, cxd, exf] and will be a 1x3 matrix
Another factor is the size of w is (mxN), and in the above case, m=2;N=3
So, I also assume length(w)/N might need to be used as well.
Looking for suggestions ASAP
cheers
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!