square a vector-Given the variable x as your input, square it and put the result in y. - MATLAB Cody - MATLAB Central

Problem 2971. square a vector-Given the variable x as your input, square it and put the result in y.

Difficulty:Rate

function y = (x)squared

 y = x;
end

Solution Stats

47.9% Correct | 52.1% Incorrect
Last Solution submitted on Nov 27, 2024

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers109

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!