필터 지우기
필터 지우기

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일)
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