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

Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter2: Systems Of Linear Equations
Section2.3: Spanning Sets And Linear Independence
Problem 26EQ
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
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning