Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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