How to multiply the different values of same variables

1 回表示 (過去 30 日間)
rupak katwal
rupak katwal 2019 年 10 月 3 日
回答済み: John D'Errico 2019 年 10 月 3 日
I have the variable x in the for loop which gives the different values in each time. Now i want to get the product of those all values??

回答 (1 件)

John D'Errico
John D'Errico 2019 年 10 月 3 日
And the problem is?
P = 1;
for i = 1:Imdone
x = (stuff)
P = P*x;
end

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by