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

Created by Carlos Oliveros in Community

function y = (x)squared

 y = x;

Solution Stats

61.9% Correct | 38.1% Incorrect
Last solution submitted on Dec 17, 2018

Problem Comments

Recent Solvers60

Suggested Problems

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!