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