if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers130
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6847 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14336 Solvers
-
323 Solvers
-
Cumulative product of a vector
302 Solvers
-
Convert from Fahrenheit to Celsius
29036 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!