Answers for "octave square each element matrix"

C
1

octave square each element matrix

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

squared_x = x.^2;
# squared_x = [1;4;9]
Posted by: Guest on February-20-2022

Code answers related to "C"

Browse Popular Code Answers by Language