How to multiply the different values of same variables
1 回表示 (過去 30 日間)
古いコメントを表示
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??
0 件のコメント
回答 (1 件)
John D'Errico
2019 年 10 月 3 日
And the problem is?
P = 1;
for i = 1:Imdone
x = (stuff)
P = P*x;
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!