フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 回表示 (過去 30 日間)
Honey Adams
Honey Adams 2018 年 6 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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;]

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 6 月 11 日
編集済み: KALYAN ACHARJYA 2018 年 6 月 11 日
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

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by