Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN MATLAB Write a function femalechdrisk that takes information about one or more female patients in the form of a struct array and returns the

IN MATLAB Write a function femalechdrisk that takes information about one or more female patients in the form of a struct array and returns the LDL-based risk of Coronary Heart Disease (CHD). Prediction of risk will be based on the 'Risk Factor Categories' reported by Wilson et al. ( http://dx.doi.org/10.1161/01.CIR.97.18.1837 ). Calculation of LDL-based CHD risk is summarized at http://circ.ahajournals.org/content/circulationaha/97/18/1837/F4.large.jpg?width=800&height=600&carousel=1 or alternatively at: http://imgur.com/a/ORu9X The tables also contain Cholesterol-based risk calculation, which we ignore in this assignment. Patient information is provided as a struct containing the following fields: age % Patient's age in years. ldl % Low-density lipoprotein (LDL - C) in mg/dl. hdl % High-density lipoprotein (HDL - C) in mg/dl. systolic % Systolic Blood Pressure in mmHg. diastolic % Diastolic Blood Pressure in mmHg. hasdiabetes % Patient has diabetes - logical (true/false). issmoker % Patient is smoker - logical (true/false). * You need to return a single number for each patient, represent the LDL-based CHD risk.

>> femaleldlchdrisk([struct('age',22,'ldl',148,'hdl',20,'systolic',120,'diastolic',94,'hasdiabetes',false,'issmoker',true)]) ans = 2

>> femaleldlchdrisk([struct('age',22,'ldl',148,'hdl',20,'systolic',120,'diastolic',94,'hasdiabetes',false,'issmoker',true)

struct('age',42,'ldl',178,'hdl',50,'systolic',140','diastolic',104','hasdiabetes',false,'issmoker',true)]) ans = 2 7

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

Step: 3

blur-text-image

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions