How to pass constants when solving nonlinear problem using fsolve
Mostrar comentarios más antiguos
How to pass constant's into functions when solving non-linear equations using fsolve? Currently H is defined as a constant in rootNd0.
%%%%%
index = 1;
for H = -4:4
r0 = zeros(1,m); % Solution Vector
fun = @rootNd0;
options = optimoptions('fsolve','Display','none','PlotFcn',@optimplotfirstorderopt);
r = fsolve(fun,r0,options);
M = 1:m;
phi = 2*pi*M*(1+sqrt(V))/2;
[xpos(index,:), ypos(index,:)] = pol2cart(phi,r);
index = index + 1;
end
%%%%%
Respuestas (2)
Star Strider
el 19 de Jul. de 2018
0 votos
Alan Weiss
el 19 de Jul. de 2018
0 votos
Categorías
Más información sobre Systems of Nonlinear Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!