Multiplication of rows in a single column

1 回表示 (過去 30 日間)
Tino
Tino 2019 年 5 月 15 日
回答済み: madhan ravi 2019 年 5 月 15 日
Hi
Please how do I multiply the rows in a single column
I have a matrix with the size 200 1
thanks for your help
for instance
A
1
2
3
4
6
6.
.
.
n
x = 1 * 2 * 3 * 4 * 6 * 6 ...........n
Thanks in advance
Tino

回答 (2 件)

Guillaume
Guillaume 2019 年 5 月 15 日
prod(yourvector)

madhan ravi
madhan ravi 2019 年 5 月 15 日
x = prod(A)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by