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??

回答(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 CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by