Cody

Problem 389. Column norms of a matrix

Solution 2780800

Submitted on 4 Aug 2020 by Andrew Ouellette
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
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))

y = 8.1240 0 0 y = 8.1240 9.6437 0 y = 8.1240 9.6437 11.4018