Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started