Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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 visualizzazione (ultimi 30 giorni)
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;]

Risposte (1)

KALYAN ACHARJYA
KALYAN ACHARJYA il 11 Giu 2018
Modificato: KALYAN ACHARJYA il 11 Giu 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

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by