Cody

Problem 46908. Product of elements in a column

Solution 3348103

Submitted on 23 Oct 2020 by William
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x =[1 2 3;3 4 5;1 2 1]; y_correct = [3 16 15]; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x =[1 8 9 4;1 26 7 5]; y_correct = [1 208 63 20]; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x =[10 20;30 40]; y_correct = [300 800]; assert(isequal(your_fcn_name(x),y_correct))

4   Pass
x =[10 30;20 40]; y_correct = [200 1200]; assert(isequal(your_fcn_name(x),y_correct))

Suggested Problems

More from this Author5

Community Treasure Hunt

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

Start Hunting!