![]() |
求助:向量分段求乘积
有一个列向量,有100个元素,我 想分别求每各20个元素的乘积,例如分别求第1-20,20-40,40-60,60-80,80-100的乘积
|
a=1:100; %原本的資料
prod(reshape(a,20,[])) :smile: |
thank you very much
|
所有时间均为北京时间。现在的时间是 12:19。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.