Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Hello.I am trying to use the fsolve in matlb. In order to that i created a function that gives me an error of not enough input argument . apart from x,the remaining input arguments are constant matrices

1 visualización (últimos 30 días)
function F = CS(x,V,W,Z,center,left,right,j,v,w,z,R,L)
F = [ ((v*V) \ (v*(center-(W*r + Z*s)) + v*((left- (W*r + Z*s)*b - j*d)*b) + v*((right- (W*r + Z*s)*g - j*h)*g)) (1/1+(b^2 + g^2)))-a; ((w*W)\( w(center-(V*a + Z*s)) + w*((left- (V*a + Z*s)*b -j*d)*b)+ w*((right- (V*a + Z*s)*g - j*h)*g)) *(1/1+(b^2 + g^2)))-r;
((z*Z)\(z*(center-(V*a + W*r)) + z * ((left- (V*a + W*r)*b - j*d)*b) + z*((right-(V*a + W*r)*g - j*h)*g)) *(1/1+(b^2 + g^2)))-s;
(((a'*v + r'*w + s'*z)*(V*a + W*r + Z*s))\(L*(V*a + W*r + Z*s)-(a'*v+ r'*w + s'*z)*j*d)) -b;
(((a'*v + r'*w + s'*z)*(V*a + W*r + Z*s))\(R*(V*a + W*r + Z*s )-(a'*v + r'*w + s'*z)*j*h)) -g;
((L*j - (a'*v + r'*w + s'*z)*j*b)/5) -d ;
((R*j - (a'*v + r'*w + s'*z)*j*g)/5)-h;]

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 11 de Jun. de 2018
Editada: KALYAN ACHARJYA el 11 de Jun. de 2018
here all following parameters as inputs
x,V,W,Z,center,left,right,j,v,w,z,R,L
if you want the only x as input, define following terms within the function body, not in CS(.......)
V,W,Z,center,left,right,j,v,w,z,R,L

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by