diff --git a/Part G/part_g.m b/Part G/part_g.m index 4583bb5..d9f673b 100644 --- a/Part G/part_g.m +++ b/Part G/part_g.m @@ -9,12 +9,12 @@ end clf setDefaults -x = wmax; +x = wmax'; y = P'; -Z = [x.^3]'; +Z = x.^3; a = Z\y; x_fcn = linspace(min(x),max(x)); -plot(x,y,'o',x_fcn,a.*x_fcn) +plot(x,y,'o',x_fcn,a.*x_fcn.^3) title('Pressure vs. Maximum Deflection') xlabel('Max w') ylabel('Pressure vs.. Max Deflection') \ No newline at end of file