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 69ee859 commit 06cefce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Part G/part_g.m
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 06cefce

Please sign in to comment.