Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

4. Who should be invited to attend?

Answered: 1 week ago