Question: use Matlab For this homework, you will write a single M-file that solves the problems described below. Separate your solution to each problem with a

use Matlab

use Matlab For this homework, you will write a single M-file that

For this homework, you will write a single M-file that solves the problems described below. Separate your solution to each problem with a cell block (use % % followed by a brief description of the problem). Use comments when appropriate. Remember to publish your code as a PDF file and submit both the PDF file and the M-file on Blackboard. Solve the following problems: Create a function called isHighBP, that accepts 2 input variables: systolic and diastolic, that represent a user's systolic and diastolic blood pressures, respectively. The function should return 1 output variable: TFHighBP, which will have a value of true if the systolic and diastolic pressures represent a blood pressure associated with hypertension. Hypertension is defined as a systolic blood pressure greater than or equal to 140 mmHg OR a diastolic blood pressure greater than or equal to 90. In your script, test the following cases: systolic = 120: diastolic = 80; isHighBP should output 0 systolic = 145: diastolic = 80; isHighBP should output a 1 systolic = 137: diastolic = 92; isHighBP should output a 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!