function m-file to find the magnitude and the direction of cosine of vector F which expresses 3 dimension -x,y, andz. Here are requirements for the...
View the step-by-step solution to:

Question

function m-file to find the magnitude and the direction of cosine of vector which expresses

3 dimension - x, y, and z. Here are requirements for the function m-file.

Parameter-list (input(s)): · 3 dimensional vector

· row vector or column vector - undetermined - Return Value (outputs):

· Magnitude of a given vector,

Angles(degree) from direction of cosine

Order of outputs : [Magnitude, α, β, γ]

Using a script m-file which will call the Mag_Vec_yourEmailAccount function, save outputs with fol- lowing given inputs.

F1 =3i+2j−6k.SaveitonEX1_1.dat.

ˆˆ

F2 = 4i − 2k. Save it on EX1_2.dat.

ˆˆ

F3 = 4i + 3j. Save it on EX1_3.dat.

ˆˆ

F4 = 5j − 12k. Save it on EX1_4.dat.

ˆˆˆ

F5 =i+j+k.SaveitonEX1_5.dat.

Top Answer

for input F1 = [ 3 2 -6] output =[ 7.00001.12791.28102.6005]... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question