Warning: Cannot find explicit solution
Show older comments
Hi, I have to solve this equation: x*cot(x)-1+(ke*R/Dm). Where ke= 3.7*10^-5, R=2*10^-4 and Dm=12.6*10^-19. When I use solve matlab give me this error: 'Warning: Cannot find explicit solution.'. Can you help me?
Accepted Answer
More Answers (1)
format long
deltax = 1e-13;
n = 100;
ke = 3.7e-5;
R = 2e-4;
Dm = 12.6e-19;
fun = @(x)x.*cot(x)-1+ke*R/Dm;
for i=1:n
left=(i-1)*pi+deltax;
right=i*pi-deltax;
sol(i)=fzero(fun,[left right]);
end
sol
fun(sol)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!