Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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-9NWD

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books