I'm trying to perform a calculation on two values that basically takes the second x, y value in the array "EasyPracNumbers" and multiplies it by 1 to output 2 but instead it outputs:
123
This is the code:
EasyPracNumbers = [1 1; 2 2; 3 3];CalcOutput = EasyPracNumbers(:,2)*1;disp(CalcOutput);
What am i doing wrong, I need to use the function "hypot" on particular numbers in an array and output them to screen also, how would I do this?
Best Answer