MATLAB: AN INTRODUCTION WITH APPLICATIO
MATLAB: AN INTRODUCTION WITH APPLICATIO
6th Edition
ISBN: 9781119626596
Author: GILAT
Publisher: WILEY
bartleby

Concept explainers

bartleby

Videos

Question
100%
Book Icon
Chapter 4, Problem 1P
To determine

The Body Mass index by taking the variables as input from user.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The Body Mass index is 24.6.

Explanation of Solution

Given Information:

  • The mass of the person is 162lb.
  • The height of the person is 68in.
  • The BMI is calculated as BMI=703Wh2.

Formula to calculate the BMI is

    BMI=703Wh2

Where,

  • BMI is the Body Mass index.
  • W is the weight of person in lb.
  • h is the height of person in in.

Substitute 162lb for W and 68in for h to find BMI.

    BMI=703( 162lb) ( 68in )2=24.629324.6

Write the MATLAB script that calculates the Body Mass index by taking the variables as input from user.

MATLAB Code:

W = input('Enter the weight: ');

% Provide input to the variable W.

h = input('Enter the height: ');

% Provide input to the variable h.

BMI = round((703*W)/(h^2),1);

% Calculate the BMI.

fprintf('The BMI is: %f\n', BMI);

% Print the result.

Save the MATLAB script with name, Chapter1_56830_4_1P.m in the current folder. Execute the script by typing the script name at the command window to calculate the Body Mass index by taking the variables as input from user.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 4, Problem 1P

Conclusion:

Therefore, the Body Mass index is 24.6.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
A normal distribution has a mean of 50 and a standard deviation of 4. Solve the following three parts? 1. Compute the probability of a value between 44.0 and 55.0. (The question requires finding probability value between 44 and 55. Solve it in 3 steps. In the first step, use the above formula and x = 44, calculate probability value. In the second step repeat the first step with the only difference that x=55. In the third step, subtract the answer of the first part from the answer of the second part.) 2. Compute the probability of a value greater than 55.0. Use the same formula, x=55 and subtract the answer from 1. 3. Compute the probability of a value between 52.0 and 55.0. (The question requires finding probability value between 52 and 55. Solve it in 3 steps. In the first step, use the above formula and x = 52, calculate probability value. In the second step repeat the first step with the only difference that x=55. In the third step, subtract the answer of the first part from the…
If a uniform distribution is defined over the interval from 6 to 10, then answer the followings: What is the mean of this uniform distribution? Show that the probability of any value between 6 and 10 is equal to 1.0 Find the probability of a value more than 7. Find the probability of a value between 7 and 9.   The closing price of Schnur Sporting Goods Inc. common stock is uniformly distributed between $20 and $30 per share. What is the probability that the stock price will be: More than $27? Less than or equal to $24?   The April rainfall in Flagstaff, Arizona, follows a uniform distribution between 0.5 and 3.00 inches. What is the mean amount of rainfall for the month? What is the probability of less than an inch of rain for the month? What is the probability of exactly 1.00 inch of rain? What is the probability of more than 1.50 inches of rain for the month? The best way to solve this problem is begin by a step by step creating a chart. Clearly mark the range, identifying the…
Client 1 Weight before diet (pounds) Weight after diet (pounds) 128 120 2 131 123 3 140 141 4 178 170 5 121 118 6 136 136 7 118 121 8 136 127

Chapter 4 Solutions

MATLAB: AN INTRODUCTION WITH APPLICATIO

Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
Matrix Operations Full Length; Author: ProfRobBob;https://www.youtube.com/watch?v=K5BLNZw7UeU;License: Standard YouTube License, CC-BY
Intro to Matrices; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=yRwQ7A6jVLk;License: Standard YouTube License, CC-BY