Given a matrix M, return a vector y such that for each k
y(k)=norm(M(:,k))
(y(k) is the Euclidean norm of the k-th column of M)
EDIT: changed the test case so that proper handling of complex values is required.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers570
Suggested Problems
-
512 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
888 Solvers
-
Sum of first n positive integers
622 Solvers
-
392 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2151 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
It a good problem, but it needs multiple test cases. Right now, the leading solution just returns a predefined vector with the correct result.