Multiplying a Vector's Elements Together

Hello.
I have a single row vector optained from a while loop, called "xiStor(n)=xupdated", where n is the number of iterations in the while loop, and xupdated contain's each iterations calculation. I want to extract all the values in this vector and multiply them together. Is there a function to do this?

답변 (1개)

David Hill
David Hill 2020년 5월 1일

0 개 추천

prod()

이 질문은 마감되었습니다.

태그

질문:

2020년 5월 1일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by