Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
1
  • Loading branch information
cjc13016 committed Dec 14, 2017
1 parent 720ad96 commit 37ced14
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions partg.m
@@ -1,5 +1,16 @@
for P = [0.001:0.01:10]
[pw_se,w] = SE_diff(T,P,n);
[root,fx,ea,iter] = bisect_final_project(@(T) SE_diff(T,P,40),-5,10,.1);
disp(root)
end

P = linspace(0.001,0.01,10);

for i = 1:length(P)
func = @(T) SE_diff(T,P(i),10);
[root(i),fx,ea,iter] = bisect_final_project(func,0.001,1,.1);
end

for i = 1:length(root)
w = membrane_solution(root(i),P(i),10);
w1(:,i) = w; % displays w values as column
end

w_max = max(w1);
v_cub = interp1(w_max,P,'pchip');
plot(w_max,P)

0 comments on commit 37ced14

Please sign in to comment.