Warning: Cannot find explicit solution
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (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)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
