Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmaliniak committed Dec 14, 2017
1 parent 3fbaa55 commit 7a40fed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Binary file added Part G/Part g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions Part G/part_g.asv
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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')
6 changes: 5 additions & 1 deletion Part G/part_g.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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')

0 comments on commit 7a40fed

Please sign in to comment.