About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 122
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Rick Rosson (5 other programs)
See full specifications

scripts default iconBody-Mass Index (Scripts) Publisher's description

This function computes a person's body-mass index, or BMI, given his/her current weight in pounds and height in inches

This function computes a person's body-mass index, or BMI, given his/her current weight in pounds and height in inches. The function also plots BMI versus weight for a range of weights specified by wRange.

Note that although the inputs are in U.S. conventional units of measure (so that it is convenient for use in the United States), the resulting BMI value is measured, by definition, in SI units.

To modify the code to use SI units for the input arguments, simply replace the line

useSIunits = false;

with the line

useSIunits = true;

and save the code. Then, when calling the function from the MATLAB, use kilograms for weight and meters for height, and the result should be correct. Note that the function will automatically change the units of measure in the title and the labels for each axis.

The author makes no claim as to the validity or usefulness of BMI as a measure of overall health or wellness. There are many resources available on the web and in the literature that describe BMI, what it means, and how to interpret the results.


b = bmi(height,weight);

b = bmi(height,weight,wRange);


height = 68; % inches
weight = 174; % pounds
b = bmi(height,weight,[ 150 210 ]);

System Requirements:

MATLAB 7.5 (R2007b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Body-Mass Index (Scripts) Tags:

Click on a tag to find related softwares

Is Body-Mass Index (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.