Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in matlab please Q4 References Mailings Review View Acrobat Enable Edding can contain viruses. Unless you need to edit, it's safe to stay in Protected
in matlab please Q4
References Mailings Review View Acrobat Enable Edding can contain viruses. Unless you need to edit, it's safe to stay in Protected View 63. We collect data for different type of milk. The data is recorded in a table T, with columns Country = ["CA"; "CA"; US";-) state = ["ON":"BC", "OHIO); province or state fat= 11;2;3;-1; #fat percentage in % quality= 12:1; 5; -1: # the larger the better quality. 1. Code to view the data for "CA" (Canada) 2 Code to add one new type of milk, from MB, Canada, fat percentage is 10%, and quality is 4. 3. Code to update the state column, change "BC" to "AB". 4. Code to find which milk has quality greater than 4. 5. Code to find which milk has quality greater than 4 and from "ON". 04. Variable s is defined as a string vector. We display the first a couple of elements: s = [ "height". *12.5","weight","103-9","NWO", ...). Code to do the following. (1) replace all elements "height with "dimension" for s. Solve this using loop (2) replace all elements "height" with "dimension" for s. Solve this without using loop (3) create a new character vector si, which concatenate all elements of s horizontally. That is, 51 ="height25weight 103-9NWD...". References Mailings Review View Acrobat Enable Edding can contain viruses. Unless you need to edit, it's safe to stay in Protected View 63. We collect data for different type of milk. The data is recorded in a table T, with columns Country = ["CA"; "CA"; US";-) state = ["ON":"BC", "OHIO); province or state fat= 11;2;3;-1; #fat percentage in % quality= 12:1; 5; -1: # the larger the better quality. 1. Code to view the data for "CA" (Canada) 2 Code to add one new type of milk, from MB, Canada, fat percentage is 10%, and quality is 4. 3. Code to update the state column, change "BC" to "AB". 4. Code to find which milk has quality greater than 4. 5. Code to find which milk has quality greater than 4 and from "ON". 04. Variable s is defined as a string vector. We display the first a couple of elements: s = [ "height". *12.5","weight","103-9","NWO", ...). Code to do the following. (1) replace all elements "height with "dimension" for s. Solve this using loop (2) replace all elements "height" with "dimension" for s. Solve this without using loop (3) create a new character vector si, which concatenate all elements of s horizontally. That is, 51 ="height25weight 103-9NWDStep 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