BMI Calculator with Health Status Indicator
Version 1.0.0 (1.38 KB) by
Athanasios Paraskevopoulos
BMI Calculator: Inputs weight and height to compute BMI, displays result with health status message, using dialog-based interaction.
This script is a BMI (Body Mass Index) calculator designed to interactively gather a user's weight in kilograms and height in meters through a dialog box. Upon input, it calculates the BMI by dividing the weight by the square of the height. The result is then displayed to the user along with a personalized greeting. Additionally, the script evaluates the calculated BMI to provide a health status indicator, classifying the user's weight category as very underweight, underweight, normal weight, overweight, or obese. This classification is based on established BMI thresholds and is displayed alongside the numerical BMI value.
Cite As
Athanasios Paraskevopoulos (2024). BMI Calculator with Health Status Indicator (https://www.mathworks.com/matlabcentral/fileexchange/163036-bmi-calculator-with-health-status-indicator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |