Problem 170. First N Perfect Squares
Description
Return the first N perfect squares
Example
input = 4; output = [ 1 4 9 16 ];
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers874
Suggested Problems
-
Flip the main diagonal of a matrix
831 Solvers
-
Change the sign of even index entries of the reversed vector
574 Solvers
-
521 Solvers
-
Convert given decimal number to binary number.
2112 Solvers
-
Solve a System of Linear Equations
12668 Solvers
More from this Author56
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!