test02_spring08_4b

test02_spring08_4b - % y-value of x = 22.5 % x = [10 25]; y...

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

View Full Document Right Arrow Icon
% 4/19/11 % Test 2 Fall09 #4b % % Linear: Given the points (10,15) and (25,30) in an xy coordinate system, % (b) Write a script that uses linear regression to find the corresponding
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % y-value of x = 22.5 % x = [10 25]; y = [15 30]; yr = polyval(polyfit(x,y,1), 22.5); y...
View Full Document

Ask a homework question - tutors are online