House - if quality> theMax theMax = quality y = y 1 end...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 clear clc load houses.mat theMax = 0 x = 1 y = 1 while x <= length(prices) quality = (sizes(x)/(prices(x)*crime_rate(x)))
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if quality > theMax theMax = quality y = y + 1 end end x = x + 1 end toBuy = houses(y)...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online