Answer the following question using MATLAB 1a: Write the MATLAB commands to set the variables w, ft, and in to 124, 5, and 6, respectively. Then, using a variable BMI, compute and output the example person's body mass index using W BMI = 703 x (ft x 12 + in)? 1b: Write the MATLAB commands that assign 33 and 4 to the variables a and b, respectively. Then, create a column vector W with the elements a! In(ab) Vb – a V(a + b)? – (b- a)? -a where y! is the factorial of y, for which you should use a built-in MATLAB function, and In(x) is the natural logarithm of x. Finally, compute the average of the elements in W

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
Answer the following question using MATLAB
1a: Write the MATLAB commands to set the variables w, ft, and in to 124, 5, and 6, respectively.
Then, using a variable BMI, compute and output the example person's body mass index using
W
BMI = 703 x
(St x 12 + in)?
1b: Write the MATLAB commands that assign 33 and 4 to the variables a and b, respectively.
Then, create a column vector W with the elements
37
a!
In(ab)
Vb - a
Va + b)2 - (b-a)
D-
where y! is the factorial of y, for which you should use a built-in MATLAB function, and In(x) is
the natural logarithm of x. Finally, compute the average of the elements in W
Transcribed Image Text:Answer the following question using MATLAB 1a: Write the MATLAB commands to set the variables w, ft, and in to 124, 5, and 6, respectively. Then, using a variable BMI, compute and output the example person's body mass index using W BMI = 703 x (St x 12 + in)? 1b: Write the MATLAB commands that assign 33 and 4 to the variables a and b, respectively. Then, create a column vector W with the elements 37 a! In(ab) Vb - a Va + b)2 - (b-a) D- where y! is the factorial of y, for which you should use a built-in MATLAB function, and In(x) is the natural logarithm of x. Finally, compute the average of the elements in W
1c: Write the MATLAB commands that create the following matrix by using shorthand methods
for creating vectors with constant spacing. Do not type individual elements explicitly.
100 200 300 4001
7
1.3 1.4
0-1 -2 -3
B =
1.1 1.2
Then, do the following:
• Create a variable x by assigning the value in the 3rd row and 4th column of B to x. Do not type
the value explicitly.
• Create a row vector C by assigning the 4th row of B to C. Do not type the values explicitly.
• Create a 2 x 2 matrix named M that is assigned the elements in the middle of B. Do not type
the values explicitly.
Transcribed Image Text:1c: Write the MATLAB commands that create the following matrix by using shorthand methods for creating vectors with constant spacing. Do not type individual elements explicitly. 100 200 300 4001 7 1.3 1.4 0-1 -2 -3 B = 1.1 1.2 Then, do the following: • Create a variable x by assigning the value in the 3rd row and 4th column of B to x. Do not type the value explicitly. • Create a row vector C by assigning the 4th row of B to C. Do not type the values explicitly. • Create a 2 x 2 matrix named M that is assigned the elements in the middle of B. Do not type the values explicitly.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,