Question: MATLAB Write a function named myFunction(x,y) which accepts a point's coordinate (x,y) as input arguments and returns the distance from this point to the origin
MATLAB

Write a function named myFunction(x,y) which accepts a point's coordinate (x,y) as input arguments and returns the distance from this point to the origin (0,0) (please figure out the formula by yourself) Note, since y is now used as part of the coordinate, we have to use another variable name to represent the return value of the function Function Reset MATL myFunction(x,y) 1 function d = 2 d = 3 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
