Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

Multiplying a Vector's Elements Together

1 view (last 30 days)
Julianna
Julianna on 1 May 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
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?

Answers (1)

David Hill
David Hill on 1 May 2020
prod()

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!