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에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!