Problem 45465. Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 return y=(1^2,3^2,5^2) y=1,9,25
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
We love vectorized solutions. Problem 1 : remove the row average.
802 Solvers
-
628 Solvers
-
Add one raw in given matrix as shown in example
146 Solvers
-
Back to Basics - Find no. of elements in a matrix?
297 Solvers
-
find the mean of all elements in a matrix
107 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!