Question: ### 1 . Magnitude & Direction of Vector Write a function m - file to find the magnitude and the direction of cosine of vector
### Magnitude & Direction of Vector
Write a function mfile to find the magnitude and the direction of cosine of vector F which expresses dimension $x$ $y$ and $z$ Here are requirements for the function mfile.
Parameterlist inputs:
dimensional vector
row vector or column vector undetermined
Return Value outputs:
Magnitude of a given vector $mathbfvecFsqrtFxFyFz$
Anglesradian from direction of cosine $cosalphafracFxmathbfvecFcosbetafracFymathbfvecFcosgammafracFzmathbfvecF$
Order of outputs : $Magnitudealpha beta gamma $
Function name : MagVecyourEmailAccount
Using a script mfile which will call the MagVecyourEmailAccount function, save outputs with following given inputs.
If the given vector is $mathbfFhatihatjhatk$ find the outputs of your MagVecyourEmailAccount function. Then save the return values on EXdat
If the given vector is $mathbfFhatihatk$ find the outputs of your MagVecyourEmailAccount function. Then save the return values on EXdat
If the given vector is $mathbfFhatihatj$ find the outputs of your MagVecyourEmailAccount function. Then save the return values on EXdat
If the given vector is $mathbfFhatjhatk$ find the outputs of your MagVecyourEmailAccount function. Then save the return values on EXdat
If the given vector is $mathbfFhatihatjhatk$ find the outputs of your MagVecyourEmailAccount function. Then save the return values on EXdat
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
