diff --git a/Part G/Part g.png b/Part G/Part g.png new file mode 100644 index 0000000..7f2d72c Binary files /dev/null and b/Part G/Part g.png differ diff --git a/Part G/part_g.asv b/Part G/part_g.asv index 53c0698..3218b00 100644 --- a/Part G/part_g.asv +++ b/Part G/part_g.asv @@ -11,7 +11,9 @@ clf setDefaults x = wmax'; y = P'; -Z = [x.^0, x.^3]; -a = Z\y; -x_fcn = linspace(min(x),max(x)); -plot(x,y,'o',x_fcn,a(1)+a(3)*x_fcn.^2) \ No newline at end of file +Z=x.^3; +a=Z\y; +x_fcn=linspace(min(x),max(x)); +plot(x,y,'o',x_fcn,a*x_fcn.^3) +title(' +%print('Part g','-dpng') \ No newline at end of file diff --git a/Part G/part_g.m b/Part G/part_g.m index 016c702..447b123 100644 --- a/Part G/part_g.m +++ b/Part G/part_g.m @@ -14,4 +14,8 @@ Z=x.^3; a=Z\y; x_fcn=linspace(min(x),max(x)); -plot(x,y,'o',x_fcn,a*x_fcn.^3) \ No newline at end of file +plot(x,y,'o',x_fcn,a*x_fcn.^3) +title('Pressure vs Maximum Deflection') +xlabel('Maximum Deflection (um)') +ylabel('Pressure (MPa)') +print('Part g','-dpng') \ No newline at end of file