How to multiply the different values of same variables
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
John D'Errico
am 3 Okt. 2019
And the problem is?
P = 1;
for i = 1:Imdone
x = (stuff)
P = P*x;
end
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!