Problem 2971. square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared
y = x; end
Solution Stats
Problem Comments
-
1 Comment
Matthew Eicholtz
on 7 Feb 2015
I suggest looking at more Cody examples to understand the structure of the problem statement, function definition, and test suite.
Solution Comments
Show commentsProblem Recent Solvers110
Suggested Problems
-
Sum all integers from 1 to 2^n
17339 Solvers
-
324 Solvers
-
761 Solvers
-
443 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
592 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!