Question: MATLAB I understand Part 1. I need help with 2 and 3. Any guidance helps! Thank you! I Problem 2: TV Viewing Habits It is

MATLAB

I understand Part 1. I need help with 2 and 3. Any guidance helps! Thank you! I

MATLAB I understand Part 1. I need help with 2 and 3.Any guidance helps! Thank you! I Problem 2: TV Viewing Habits Itis Sunday night and there are 3 TV shows on. We are

Problem 2: TV Viewing Habits It is Sunday night and there are 3 TV shows on. We are given viewing preferences for a row of houses on a given street. The viewing data is formatted in a 1D array with shows 1-3 indicated below. Zero entries in the neighbor-hood array represent households that are undecided. In this problem we will be predicting the viewing habits of these undecided families based on viewing habits of their neighbors. The following variables are already contained in the HW4_DATA.mat file. Do NOT hard code these. They must come from the HW4 DATA file. show1- 'The Good Wife' show 2-' Once Upon a Time' ; show 3-,Masterpiece,; neighborhood = [1, 0, 3, 2, 0, 2, 1, 1, 3, 3, 1, 2, 3, 3,0] ; Part 1: First let us create an array of undecided households. Using the neighborhood array, create another array called undecided, which contains the indexes of the undecided households. For the practice dataset in HW4.DATA your output will be: Part 1: Extract Undecided Households House at index 2 House at index 5 House at index 15

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!