Borrar filtros
Borrar filtros

system of nonlinear equations

2 visualizaciones (últimos 30 días)
monica lecue
monica lecue el 12 de Mzo. de 2021
Comentada: monica lecue el 15 de Mzo. de 2021
I tried to solve this system of ecuation but somenthing it´s wrong :
this is the code:
Ay=1
Az=-2
By=2
Bz=-1
r=1
x = optimvar('x',2);
ec1=((x(1)-Ay)^2+(x(2)-Az)^2)==r^2;
ec2=((x(1)-(Ay))^2+(x(2)-(Az))^2)==((x(1)-((By))^2+(x(2)-(Bz))^2));
prob = eqnproblem;
prob.Equations.ec1 = ec1;
prob.Equations.ec2 = ec2;
show(prob)
x0.x = [1 -2];
[sol,fval,exitflag] = solve(prob,x0)
disp(sol.x)

Respuesta aceptada

Alan Weiss
Alan Weiss el 12 de Mzo. de 2021
Do you have Optimization Toolbox™ installed? Check by running the ver command. You might need to install or reinstall.
Alan Weiss
MATLAB mathematical toolbox documentation
  2 comentarios
monica lecue
monica lecue el 15 de Mzo. de 2021
NO, I am not sure if my license include Optimization toolbox .
monica lecue
monica lecue el 15 de Mzo. de 2021

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by