Bonjour tout le monde,
Je m'excuse pour le post d'hier qui ne devait pas être clair. D'ailleurs je penses qu'il est passé à la trappe.
Voici mon code :
1 2 3 4 5
| for i=1:m
K2=klma(S(i)+ds,0,kernel,param);
K1=klma(S(i)-ds,0,kernel,param);
u(i)=(K2-K1)./(2.*ds);
end |
Quelque chose de très classique en réalité. Ma fonction klma est du style
K=(trapz(kernel(:,1),log(1-param(3).*(s.*kernel(:,2)+t.*kerneld(:,2))-(param(2).^2./2).*(s.*kernel(:,2)+t.*kerneld(:,2)).^2)));
où le log est le logarithme complexe.
Voici la réponse :
1 2 3 4 5 6 7 8 9
|
Warning: Could not find an exact (case-sensitive) match for 'klma'.
C:\Users\Thomas\Desktop\MesfonctionsMatlab\KLMA.m is a case-insensitive match and will be used instead.
You can improve the performance of your code by using exact
name matches and we therefore recommend that you update your
usage accordingly. Alternatively, you can disable this warning using
warning('off','MATLAB:dispatcher:InexactMatch').
>> plot(S,u)
Warning: Imaginary parts of complex X and/or Y arguments ignored. |
Et là j'avoue que je comprends pas trop pourquoi ça foire ... 

Hollow
Partager