MATLAB Answers

Define vector v in the code

2 views (last 30 days)

Accepted Answer

Stephan
Stephan on 15 Apr 2021
v=[2,-3,-5,6]
result = prod(v(v>0))
  1 Comment
Serra Gündar
Serra Gündar on 15 Apr 2021
thank you for your answer!

Sign in to comment.

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!