I want to design an app to calculate the BMI based on height and weight. And I have to do it as per this BMI = weight(kg) / (height (m)*height(m)) please help me

4 次查看(过去 30 天)
I want to make an input in the App Designer panel two numerical edit fields, two labels, and one push button.
Then type in “Enter weight” for the first edit field, “Enter height” for the second, and “Compute” for the button. Finally, add a title for the App, and Dubai name and number 36.
Also I want under the code view, going to the function callback for “ConvertButtonPushed”, and retrieve the value of weight from the edit field. Also if i can do this by passing “app.EnterweightEditField.Value” to variable “Weight”.
BMI = weight(kg) / (height (m)*height(m))
PLEASE help me.
  4 个评论
Image Analyst
Image Analyst 2022-11-14
What block diagram? You didn't attach it. You can easily to this in App Designer.
Did you try it yet?
If you have any more questions, then attach your .mlapp code with the paperclip icon after you read this:
Jan
Jan 2022-11-15
"by add comments on the code above" - you have posted 1 line only.
"to label which lines correspond to each block of the diagram you drew in Step 1" - I did not draw a diagram and do not find one in your message also.
Again: How can we help you?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by