SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Here, we will load some data from MATLAB, do some additions/modifications to the data, and
export the data to a new Excel file: (a) (4 points) Load patient data from a sample .mat file
included in MATLAB by using the load patients command. (b) (4 points) Create a table (T)
using the following variables: 'LastName', 'Age', 'Height', 'Weight', 'Gender', and 'Smoker'. (c) (4
points) Create a new variable called 'BloodPressure' which contains the variables 'Systolic' and
'Diastolic'. Add this variable to the end of the table T (last column) (d) (4 points) Using the
formula given below, calculate the Body-Mass Index to the nearest one hundredth using the
values in the columns 'Height' and 'Weight' (given in inches and pounds, respectively) and assign
it to a new variable called BMI. Place this new variable 'BMI' in between 'Smoker' and
'BloodPressure' in table T. BMI=703.069h2W where h is the height in inches, W is the weight in
pounds. (e) (4 points) Export the data for the first 15 patients to a new Excel file named
NewPatientData.xlsx. Attach this Excel file to your homework submission.

Weitere ähnliche Inhalte

Mehr von alankritaecobags

Hought Offion Machines, Incits acoourtants assertbled the followi.pdf
 Hought Offion Machines, Incits acoourtants assertbled the followi.pdf Hought Offion Machines, Incits acoourtants assertbled the followi.pdf
Hought Offion Machines, Incits acoourtants assertbled the followi.pdf
alankritaecobags
 
I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf
 I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf
I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf
alankritaecobags
 
Humans are dassified in the group of vertebrates known as mammals. Wh.pdf
 Humans are dassified in the group of vertebrates known as mammals. Wh.pdf Humans are dassified in the group of vertebrates known as mammals. Wh.pdf
Humans are dassified in the group of vertebrates known as mammals. Wh.pdf
alankritaecobags
 
If you were to do a top-ten list of the worlds greatest corruption s.pdf
 If you were to do a top-ten list of the worlds greatest corruption s.pdf If you were to do a top-ten list of the worlds greatest corruption s.pdf
If you were to do a top-ten list of the worlds greatest corruption s.pdf
alankritaecobags
 

Mehr von alankritaecobags (20)

I. IGNEOUS ROCKS Igneous rocks form from cooling and crystallization .pdf
 I. IGNEOUS ROCKS Igneous rocks form from cooling and crystallization .pdf I. IGNEOUS ROCKS Igneous rocks form from cooling and crystallization .pdf
I. IGNEOUS ROCKS Igneous rocks form from cooling and crystallization .pdf
 
Hought Offion Machines, Incits acoourtants assertbled the followi.pdf
 Hought Offion Machines, Incits acoourtants assertbled the followi.pdf Hought Offion Machines, Incits acoourtants assertbled the followi.pdf
Hought Offion Machines, Incits acoourtants assertbled the followi.pdf
 
I. Basics a. Financial accounting Gain recognition depends on concep.pdf
 I. Basics a. Financial accounting Gain recognition depends on concep.pdf I. Basics a. Financial accounting Gain recognition depends on concep.pdf
I. Basics a. Financial accounting Gain recognition depends on concep.pdf
 
How many different ways are there to arrange the following sentence.pdf
 How many different ways are there to arrange the following sentence.pdf How many different ways are there to arrange the following sentence.pdf
How many different ways are there to arrange the following sentence.pdf
 
I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf
 I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf
I Consulting Opportunity 10.3 Developing a Fine System That Was Long .pdf
 
Humans are dassified in the group of vertebrates known as mammals. Wh.pdf
 Humans are dassified in the group of vertebrates known as mammals. Wh.pdf Humans are dassified in the group of vertebrates known as mammals. Wh.pdf
Humans are dassified in the group of vertebrates known as mammals. Wh.pdf
 
Humans have no doubt become an overwhelming force on the planet even .pdf
 Humans have no doubt become an overwhelming force on the planet even .pdf Humans have no doubt become an overwhelming force on the planet even .pdf
Humans have no doubt become an overwhelming force on the planet even .pdf
 
If you were to do a top-ten list of the worlds greatest corruption s.pdf
 If you were to do a top-ten list of the worlds greatest corruption s.pdf If you were to do a top-ten list of the worlds greatest corruption s.pdf
If you were to do a top-ten list of the worlds greatest corruption s.pdf
 
However, in order for a crossing-over event to result in the re-shuff.pdf
 However, in order for a crossing-over event to result in the re-shuff.pdf However, in order for a crossing-over event to result in the re-shuff.pdf
However, in order for a crossing-over event to result in the re-shuff.pdf
 
In a local water budget, when PET is greater than precipitation, the .pdf
 In a local water budget, when PET is greater than precipitation, the .pdf In a local water budget, when PET is greater than precipitation, the .pdf
In a local water budget, when PET is greater than precipitation, the .pdf
 
Holt Enterprises recently paid a dividend, D0, of $2.25. It expects t.pdf
 Holt Enterprises recently paid a dividend, D0, of $2.25. It expects t.pdf Holt Enterprises recently paid a dividend, D0, of $2.25. It expects t.pdf
Holt Enterprises recently paid a dividend, D0, of $2.25. It expects t.pdf
 
In 2022, Laureen is currently single. She paid $2,560 of qualified tu.pdf
 In 2022, Laureen is currently single. She paid $2,560 of qualified tu.pdf In 2022, Laureen is currently single. She paid $2,560 of qualified tu.pdf
In 2022, Laureen is currently single. She paid $2,560 of qualified tu.pdf
 
Implement a singly linked list as a functional data structure in Ko.pdf
 Implement a singly linked list as a functional data structure in Ko.pdf Implement a singly linked list as a functional data structure in Ko.pdf
Implement a singly linked list as a functional data structure in Ko.pdf
 
IL. Industries issues a bond with a stated interest rate of 10, face.pdf
 IL. Industries issues a bond with a stated interest rate of 10, face.pdf IL. Industries issues a bond with a stated interest rate of 10, face.pdf
IL. Industries issues a bond with a stated interest rate of 10, face.pdf
 
III. Short AnswerEssay. Choose or write the correct wordphrase .pdf
 III. Short AnswerEssay. Choose or write the correct wordphrase .pdf III. Short AnswerEssay. Choose or write the correct wordphrase .pdf
III. Short AnswerEssay. Choose or write the correct wordphrase .pdf
 
If you went back 60 million Years you would not see any Select one a.pdf
 If you went back 60 million Years you would not see any Select one a.pdf If you went back 60 million Years you would not see any Select one a.pdf
If you went back 60 million Years you would not see any Select one a.pdf
 
If X1 and X2 are independent normal random variables with respective .pdf
 If X1 and X2 are independent normal random variables with respective .pdf If X1 and X2 are independent normal random variables with respective .pdf
If X1 and X2 are independent normal random variables with respective .pdf
 
If the inverse demand curve a monopoly faces is p=10Q0.5 what is the .pdf
 If the inverse demand curve a monopoly faces is p=10Q0.5 what is the .pdf If the inverse demand curve a monopoly faces is p=10Q0.5 what is the .pdf
If the inverse demand curve a monopoly faces is p=10Q0.5 what is the .pdf
 
If crustal rock is the only source, the saits in the ocean should be .pdf
 If crustal rock is the only source, the saits in the ocean should be .pdf If crustal rock is the only source, the saits in the ocean should be .pdf
If crustal rock is the only source, the saits in the ocean should be .pdf
 
I have two questions they are for machine learning. 4.3.2 [5] What fr.pdf
 I have two questions they are for machine learning. 4.3.2 [5] What fr.pdf I have two questions they are for machine learning. 4.3.2 [5] What fr.pdf
I have two questions they are for machine learning. 4.3.2 [5] What fr.pdf
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Kürzlich hochgeladen (20)

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Here, we will load some data from MATLAB, do some additionsmodificat.pdf

  • 1. Here, we will load some data from MATLAB, do some additions/modifications to the data, and export the data to a new Excel file: (a) (4 points) Load patient data from a sample .mat file included in MATLAB by using the load patients command. (b) (4 points) Create a table (T) using the following variables: 'LastName', 'Age', 'Height', 'Weight', 'Gender', and 'Smoker'. (c) (4 points) Create a new variable called 'BloodPressure' which contains the variables 'Systolic' and 'Diastolic'. Add this variable to the end of the table T (last column) (d) (4 points) Using the formula given below, calculate the Body-Mass Index to the nearest one hundredth using the values in the columns 'Height' and 'Weight' (given in inches and pounds, respectively) and assign it to a new variable called BMI. Place this new variable 'BMI' in between 'Smoker' and 'BloodPressure' in table T. BMI=703.069h2W where h is the height in inches, W is the weight in pounds. (e) (4 points) Export the data for the first 15 patients to a new Excel file named NewPatientData.xlsx. Attach this Excel file to your homework submission.