Question: What is the value stored in variable crazyScaryData ( 2 ) after the code is run? Template: A = Your answer goes here B: What

What is the value stored in variable crazyScaryData(2) after the code is run? Template: A = Your answer goes here B: What is the value stored in cell newCol(2) after the code is run? Template: B = Your answer goes here C: What is the value stored in cell ca(3,3) after the code is run? Template: C = Your answer goes here D: What is the value stored in variable score after the code is run? Template: D = Your answer goes here E: If line number 15 were changed to the following, newCol ={{'Crazy Scary'} ; num2cell(crazyScaryData)} What would be the value stored in variable score after the code is run? (If you believe that the code will error, indicate that by submitting the string 'Error' as you answer.) Template: E = Your answer goes here 4 ca ={'Names', 'Ghosts','Zombies','Monsters','MATLAB'; 'Kantwon', 10,5,7,3; 'Smith', 1,1,1,1; 'Buzz', 7,2,9,9}; header = ca(1,:); data = ca(2:end,:); [~,ind]= sort(data(:,1)); data = data(ind,:); zombMask = strcmp(header,'Zombies') zombData = cell2mat(data(:,zombMask)) ca =[header;data] ca(:,zombMask)=[] crazyScaryData = zombData +3 newCol =[{'Crazy Scary'}; num2cell(crazyScaryData)] ca =[ca newCol] score = sum([ca{2:end,end}])

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 Programming Questions!