Matlab command for the following symbol: ∏ (Capital Pi / product of a sequence of terms)

123 ビュー (過去 30 日間)
Syed
Syed 2013 年 7 月 10 日
コメント済み: badr-eddine darihem 2021 年 11 月 16 日
Hi
I have an equation that i want to implement in Matlab and it has the following symbol ∏ (used to denote Capital Pi or the product of a sequence of terms).
I want to know what is the matlab command for ∏?

採用された回答

Matt J
Matt J 2013 年 7 月 10 日
編集済み: Matt J 2013 年 7 月 10 日
The PROD command.
  2 件のコメント
Matt J
Matt J 2013 年 7 月 10 日
what if i have limit as well, say from i=1 to 10?
E.g.,
a=rand(1,100);
p=prod(a(1:10))

サインインしてコメントする。

その他の回答 (1 件)

Jan
Jan 2013 年 7 月 10 日
編集済み: Jan 2013 年 7 月 10 日
prod computes the product of the elements of a vector or array. This is near to the definition of your Pi, but not exactly the same, e.g. you cannot define the limits equivalently.
  3 件のコメント
Jan
Jan 2013 年 7 月 10 日
See Matt J's comment.
I suggest to use the documentation to find out such solutions by your own. While the indexing methods are explained exhaustively (I love this term when I speak about Matlab's documentation) in the "Getting Stared" chapters, you can find the prod() function e.g. by:
docsearch product
Eoin Roe
Eoin Roe 2020 年 11 月 19 日
I know this was asked some time ago but for anyone browsing this page in the future there is also this:
symprod(f, k, a, b)

サインインしてコメントする。

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by