Define vector v in the code

 Accepted Answer

v=[2,-3,-5,6]
result = prod(v(v>0))

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Tags

Asked:

on 15 Apr 2021

Edited:

on 15 Apr 2021

Community Treasure Hunt

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

Start Hunting!