Cody

Problem 46988. Seperate 2nd column in a matrix

Solution 3345028

Submitted on 23 Oct 2020 by Mehmet OZC
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
A = [1 2;3,4;5,6] y_correct = [2;4;6]; assert(isequal(your_fcn_name(A),y_correct))

A = 1 2 3 4 5 6

2   Pass
A = [0.867 0.987 1;0.987 2 0.3] y_correct = [0.987;2]; assert(isequal(your_fcn_name(A),y_correct))

A = 0.8670 0.9870 1.0000 0.9870 2.0000 0.3000

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!