Define vector v in the code

2 views (last 30 days)
Serra Gündar
Serra Gündar on 15 Apr 2021
Edited: Serra Gündar on 15 Apr 2021
h

Accepted Answer

Stephan
Stephan on 15 Apr 2021
v=[2,-3,-5,6]
result = prod(v(v>0))

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!