fonction "feval"/ Error: Not enough input arguments
1 view (last 30 days)
Show older comments
Bonjour,
J'arrive pas à comprendre l'utilité de la commande "feval" Je l'ai trouvé dans un programme qui marche mais après modification, j'ai le message d'erreur suivant:
Error in New (line 17)
F = feval(MyFunc,x);
Sachant que j'ai une autre fonction nommée "Func".
function y = Func(x,A,B,D1,D2,X1,X2)
%the function which returns the values of F(x)
y(1) = x(1)-A.*((1+(X1.*(x(4)+x(3)))+(1/6)*(X1^2).*(x(4)+x(3))^2)^(-1));
y(2)= x(2)-B.*((1+(X2.*(x(4)-x(3)))+(1/6).*(X2^2).*(x(4)-x(3))^2)^(-1));
y(3)= 1+(x(3)./x(4))-2./(1+(x(2).*D1)./(x(1).*D2));
y(4)= 1-(x(3)./x(4))-2./(1+(x(1)*D2)./(x(2).*D1));
y= y';
return
De plus, j'ai une seconde erreur dans la fonction "Func"
Error using Func (line 3)
Not enough input arguments.
Merci d'avance pour vos réponse.
0 Comments
Answers (1)
See Also
Categories
Find more on Electrical Block Libraries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!