% for single person BMI calculation
% taking input values
w = input('enterr the weight of a person ')
h= input('enter the height aof a person')
bmi1 = w*4.88/(h*h)
% to solve for multiple person that is create vector
weight =
[22,34,44,67,44,83,56,12,45,89,54,45,76,88,66,37,58];
height = [45,67,43,5,78,34,87,95,33,66,43,23,63,89,53,72,43];
multipeBMI( weight,height);
function BMI = multipeBMI( weight,height)
BMI = (weight.*4.88)./(height.*height)
endfunction

Matlab calculatebmis write a ction calculatebrism that runs the BMI walue BMI can be calculated using...
read instructions carefully please matlab only
Write a MATLAB function for a BMI calculator that receives the inputs for body weight (lbs)and height (ft) from the user's program, calculates the BMI using the equation below, displays the BMI category, and outputs the BMI value tothe user's program W (kg) h2 (m2) BMI Display Normal if 18.5 s BMI 25 Display Overweight if 25 s BMI <30 Display Obese if BMI 2 30 Else display underweight So you will create two...
OGICAL 28. Body mass index (BMI) is a measure of obesity. In standard units, it is calculated by the formula EMENTS BMI = 7032 ATEMENT NESTED INTS where Wis weight in pounds, and His height in inches. The obesity classification is BMI Classification Below 18.5 Underweight 18.5 to 24.9 Normal 25 to 29.9 Overweight 30 and above Obese Tue Write a program in a script file that calculates the BMI of a person. The program asks the person to enter...
MATLAB Only MATLAB Only MATLAB Only Indicated in the script below, write a function, called arbpoly3, that accepts two inputs: i) a row vector, called c, containing the coefficients of the polynomial, starting with the coefficient for the lowest degree term, which is the constant term. ii) a row vector, called x, which is the set of real numbers where the polynomial is to be evaluated. The output, y, will be a vector containing the values of the polynomial, evaluated...
MATLAB Grader CONTENTS For this problem you will model a field goal attempt in an NFL football game as a simple projectile motion problem. For a field goal attempt, the ball is snapped seven yards back from the line of scrimmage, where the place holder holds the ball on the ground for the kicker. For a successful attempt, the kicker must kick the ball through the uprights above the cross bar, which is ten feet high and parallel to the...
Problem 3 [35 pts): Potential energy can be expressed using the following equation: E=m*g*h (1) Where: . E is the potential energy, . m is the object mass, . g is the gravitational acceleration, and • his height For the sake of this exercise you can assume that all units match and you don't need any conversions. Your task is to write a Matlab function called calculateEnergies which accepts the following as input parameters/argument (assume all vectors are of the...
ICEOZA: Solving an couation using MATLAB - (isine Vester inputs) Using the Van der Waals equation of state for a real gas, we can calculate the work produced by a quantity of gas when that gas undergoes a reversible, isothermal expansion at temperature T. from initial volume V, to final volume V. That expression for reversible, isothermal work is as follows: work = ==RTI ( - ) ** ( ) where: R 0.082057; V, -1.25 V - 3.0; n10: T-800:10:...
Problem 1 (10 pts) (Matlab coding) In this problem you will be manipulating a sine wave plot using a for loop and if statements. a) Create a vector x that goes from −4π to 4π with increments of π/10. b) Instead of using y = sin(x) on the entire array at once, use a for loop to calculate the sine of x for each value in the vector individually. Vector y should be the sine of vector x. Use the...
please use matlab
Goal: Solve for the loads of the chain saw under different loading conditions. The loads on a chain saw as it cuts a log can be represented with the following equations: Ar +B -R cos(60) 0 My-W +By - R sin(60)0 Ar is the reaction load in the x-direction at point A (lb) Ay is the reaction load in the y-direction at point A (Ib) W is the weight of the chain saw (lb) R is the...
can u please on matlab, i have the solution on paper.
[30pts] Write a robust, efficient MATLAB script to find the eigenvalues and eigenvectors of a 2 x2 matrix input by the user. You should test out your script using the following matrices. 1::)-::) 3 2 3 1 B. 1 2 C 2 3 A- D- 4 1 2 4 4 8 -3 8 You may not use any special MATLAB tools. Instead, work symbolically and derive general expressions for...