How can I solve a truss system using a system of linear equations in a function?
1 次查看(过去 30 天)
显示 更早的评论
![post.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/212840/post.png)
I am confused on how to use the bisection method to solve for F with AC being 4000N.
Bisection method example:
function [ x,N ] = Bisection( Fun,a,b,Tol )
%Find root of a function with the bisection method
% Fun should be a function containing an equation and its derivative
N = 0;
[fa dfdx] = Fun(a);
while b-a > Tol
c = 0.5*(a+b);
[fc dfdx] = Fun(c);
if fa*fc > 0
a=c;
else
b=c;
end
N=N+1;
end
x = c;
end
Anything helps
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structural Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!