% Program grapheg % this program creates a graph for practice inserting % inserting graphs into PowerPoint % set data values Raw = [358 367 506 514 653 656 788 791 943 948]; Ht = [18.9 18.8 14.8 14.8 10.9 10.7 6.9 6.9 2.7 2.7]; H_hat = [19 18.7 14.8 14.6 10.7 10.6 6.9 6.9 2.6 2.5]; % plot and label graph plot(Raw,Ht,'p',Raw,H_hat) xlabel 'RCX Raw Value', ylabel 'Height(cm)' legend('Calibration Data','Fit: Ht = 28.9 - 0.028*Raw')