Octave cuadrado cada elemento matriz

# in octave / matlab:
x = [1;2;3]

squared_x = x.^2;
# squared_x = [1;4;9]
Dark Dotterel