This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: for format) 22 4/24/11 Solution 1) any_var = polyfit(xvector,yvector,1) 2) m=any_var(1) b=any_var(2) fprintf(‘The line of best fit is y = %4.2f x + %4.2f \n’, m, b) +5 (+1 for each part) +1 (can be placed directly in fprintf statement) +1 (can be placed directly in fprintf statement) +3 ( ensure proper form and %#.2f – where # can be any reasonable value)...
View Full Document
This note was uploaded on 04/23/2011 for the course ENGR 132 taught by Professor Kutson during the Spring '11 term at Purdue.
- Spring '11