Question: Do Write a MATLAB function named MAG_UV that takes a 1x3 matrix as input and computes two outputs - the magnitude and the unit vector
Do Write a MATLAB function named MAG_UV that takes a 1x3 matrix as input and computes two outputs - the magnitude and the unit vector (as a 1x3 matrix). Hint: The MATLAB command norm returns the magnitude of a matrix The unit vector is equal to the matrix itself divided by its magnitude functionm omutolinni Matriy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
