Question
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
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