Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ltd13002 committed Dec 14, 2017
1 parent 381161f commit 03a545d
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions README.md
Expand Up @@ -176,26 +176,4 @@ end


# Part G
```matlab
P = linspace(.001,.01,10);
n = 20;
T = zeros(1,length(P));
wmax = zeros(1,length(P));
for i = 1:length(P)
T(i) = tension_sol(P(i),n);
w = membrane_solution(T(i),P(i),n);
wmax(i) = max(w);
end
clf
setDefaults
x = wmax;
y = P';
Z = [x.^3]';
a = Z\y;
x_fcn = linspace(min(x),max(x));
plot(x,y,'o',x_fcn,a.*x_fcn)
title('Pressure vs. Maximum Deflection')
xlabel('Max w')
ylabel('Pressure vs.. Max Deflection')
```
![](

0 comments on commit 03a545d

Please sign in to comment.