Cody

Problem 389. Column norms of a matrix

Solution 2564634

Submitted on 15 Jun 2020
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   Fail
M = [1 2 3; 4 5 6; 7 8 9+2i]; for k=1:size(M,2) y_correct(k)=norm(M(:,k)); end assert(isequal(your_fcn_name(M),y_correct))

Error in solution: Line: 2 Column: 7 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Suggested Problems

Community Treasure Hunt

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

Start Hunting!