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
Show
5 older comments
Anjana Srivastava
on 13 Jul 2022
Very fun problem
Ajinkya
on 14 Oct 2022
nice
Nicklas Grønvall
on 7 Aug 2023
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 Solvers11663
Suggested Problems
-
1438 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1863 Solvers
-
Who knows the last digit of pi?
673 Solvers
-
Cell Counting: How Many Draws?
2140 Solvers
-
Calculate the average value of the elements in the array
1339 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!