diff --git a/Part G/part_g.asv b/Part G/part_g.asv deleted file mode 100644 index bedf93b..0000000 --- a/Part G/part_g.asv +++ /dev/null @@ -1,20 +0,0 @@ -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 -plot(wmax,P,'o') -%P_out = interp1(wmax,P,linspace(.1,.3),'pchip'); -hold on -%plot(linspace(.1,.3),P_out) -x = wmax; -y = P; -Z = x.^3; -a = Z/ -hold off \ No newline at end of file diff --git a/Part G/part_g.m b/Part G/part_g.m index 1ea9640..4583bb5 100644 --- a/Part G/part_g.m +++ b/Part G/part_g.m @@ -14,4 +14,7 @@ Z = [x.^3]'; a = Z\y; x_fcn = linspace(min(x),max(x)); -plot(x,y,'o',x_fcn,a.*x_fcn) \ No newline at end of file +plot(x,y,'o',x_fcn,a.*x_fcn) +title('Pressure vs. Maximum Deflection') +xlabel('Max w') +ylabel('Pressure vs.. Max Deflection') \ No newline at end of file