BMI Calculator with Health Status Indicator
Version 1.0.0 (1,38 KB) von
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.
Zitieren als
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. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2024a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |