Unmatched Matrix multiplication in Cell Arrays to create reducing count.
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have an array of 1000 vectors of rates:
0.006
0.004
0.0029
...
I want to create a decreasing set of values starting from 100,000 which is created by multiplying each output number by the rate 1 step earlier:
1. 100,000
2. 100,000*0.006
3. This value *0.004
etc.
I would like the output to simply be an array of 1000 of these reducing counts, 100,000 ->
0 件のコメント
採用された回答
José-Luis
2012 年 8 月 18 日
Assuming your array is called data:
data=[100000;data];
data = cumprod(data);
Cheers!
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!