Problem 2911. Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix
example: A = [1 2 3]
output = [1 4 9]
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers451
Suggested Problems
-
First non-zero element in each column
868 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1125 Solvers
-
Replace every 3rd element in a vector with 4
252 Solvers
-
1482 Solvers
-
9478 Solvers
More from this Author28
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!