Question: Please use MATLAB CHALLENGE ACTIVITY 96.1: Life expectancy table. 9.0.1: Le expectancy table. This tool is provided by a third party. Though your activity may

Please use MATLAB

Please use MATLAB CHALLENGE ACTIVITY 96.1: Life expectancy table. 9.0.1: Le expectancy

table. This tool is provided by a third party. Though your activity

CHALLENGE ACTIVITY 96.1: Life expectancy table. 9.0.1: Le expectancy table. This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner 0 2 Life expectancy table For each of the forty largest countries in the world (according to 1990 population figures), the data is given for the country's life expectancy at birth, number of people per television set, and number of people per physician. The data is stored a table tvPLE in the mat file Television_Physician_and_Life_Expectancy. Write a script that has two subfunctions: 1) findMinimumRecord that finds the minimum life expectancy in the dataset and extracts the accompanying record, and 2) ExtractRecordBasedOnCountry to find and extract the record given the name of a country. The main script should call the two functions, as indictated in the template. The countries in the table are: "Argentina Bangladesh "Brazil' "Canada "China' "Colombia 'Egypt' 'Ethiopia *France "Germany' 'India' 'Indonesia 'Iran' 'Italy' "Japan" Kenya' Korea, North Korea, South' 'Mexico 'Morocco Myanmar (Burma) Pakistan Peru 'Philippines 'Poland' Romania' 'Russia' South Africa' 'Spain 'Taiwan Tanzania' Thailand 'Turkey 'Ukraine United Kingdom United States' 'Venezuela 'vietnam Zaire "Sudan Exc load Television_Physician_and_Life_Expectancy record = ExtractRecordBasedonCountry(tvPLE, 'South Africa') record = 1x6 table Country Life_expct Pple_per_telev Pple_per_phys Female_lf_expct Male_lf_expct 'South Africa' 1340 67 Script Save e Reset E MATLAB Documentation load Television_Physician_and_Life_Expectancy [i,j]=size(tvPLE); index=randperm(1, ); tVPLE.Country(:,1)=tVPLE.Country(index, 1); Country=tVPLE.Country(randi(1,1,1),1); recordWithMinimumLifeExpency=findMinimumRecord (tvPLE); recordofCountry = ExtractRecordBasedon Country (tVPLE, Country); function recordwithMinimunLifeExpency=findMinimumRecord(tvPLE) % Your solution % end function record=ExtractRecordBasedOnCountry(tvPLE, Country) % Your solution % 2e end Run Script Assessment: Submit Check recordWithMinimumLifeExpency is calculated correctly. Check recordofCountry is calculated correctly. Check that a while loop is not used. Check that a for loop is not used. CHALLENGE ACTIVITY 96.1: Life expectancy table. 9.0.1: Le expectancy table. This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner 0 2 Life expectancy table For each of the forty largest countries in the world (according to 1990 population figures), the data is given for the country's life expectancy at birth, number of people per television set, and number of people per physician. The data is stored a table tvPLE in the mat file Television_Physician_and_Life_Expectancy. Write a script that has two subfunctions: 1) findMinimumRecord that finds the minimum life expectancy in the dataset and extracts the accompanying record, and 2) ExtractRecordBasedOnCountry to find and extract the record given the name of a country. The main script should call the two functions, as indictated in the template. The countries in the table are: "Argentina Bangladesh "Brazil' "Canada "China' "Colombia 'Egypt' 'Ethiopia *France "Germany' 'India' 'Indonesia 'Iran' 'Italy' "Japan" Kenya' Korea, North Korea, South' 'Mexico 'Morocco Myanmar (Burma) Pakistan Peru 'Philippines 'Poland' Romania' 'Russia' South Africa' 'Spain 'Taiwan Tanzania' Thailand 'Turkey 'Ukraine United Kingdom United States' 'Venezuela 'vietnam Zaire "Sudan Exc load Television_Physician_and_Life_Expectancy record = ExtractRecordBasedonCountry(tvPLE, 'South Africa') record = 1x6 table Country Life_expct Pple_per_telev Pple_per_phys Female_lf_expct Male_lf_expct 'South Africa' 1340 67 Script Save e Reset E MATLAB Documentation load Television_Physician_and_Life_Expectancy [i,j]=size(tvPLE); index=randperm(1, ); tVPLE.Country(:,1)=tVPLE.Country(index, 1); Country=tVPLE.Country(randi(1,1,1),1); recordWithMinimumLifeExpency=findMinimumRecord (tvPLE); recordofCountry = ExtractRecordBasedon Country (tVPLE, Country); function recordwithMinimunLifeExpency=findMinimumRecord(tvPLE) % Your solution % end function record=ExtractRecordBasedOnCountry(tvPLE, Country) % Your solution % 2e end Run Script Assessment: Submit Check recordWithMinimumLifeExpency is calculated correctly. Check recordofCountry is calculated correctly. Check that a while loop is not used. Check that a for loop is not used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!