How to multiply the different values of same variables

1 visualización (últimos 30 días)
rupak katwal
rupak katwal el 3 de Oct. de 2019
Respondida: John D'Errico el 3 de Oct. de 2019
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??

Respuestas (1)

John D'Errico
John D'Errico el 3 de Oct. de 2019
And the problem is?
P = 1;
for i = 1:Imdone
x = (stuff)
P = P*x;
end

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by