Problem 624. Get the length of a given vector
Given a vector x, the output y should equal the length of x.
Solution Stats
Problem Comments
-
8 Comments
This problem requires more than one Test Suite...Please improve.
nice
The explanation of this problem is a bit confusing. It can mean, that one should compute the length of the array itself or the length of a vector in a coordinate system. I saw what was meant looking at the tests. But before I was confused.
able to find the length using x = vector but code did not give the output the problem wanted
very quick!
Very fun problem
nice
Haha, it took me a couple of minutes to fully understand that it was the vector's element length and not the vector's magnitude that was needed. -.-'
Solution Comments
Show commentsProblem Recent Solvers10262
Suggested Problems
-
Find relatively common elements in matrix rows
1994 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
10306 Solvers
-
13332 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
521 Solvers
-
537 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!