Salut tout le monde,
je suis nouveau en Matlab, je veux faire un prog avec lequel je peux faire un lissage de courbe.
J'ai trouvé un petit exemple dans le Help mais quand j ai fait des modifications il ne veux plus marché.Quand j'appuie sur F5 j ai l'erreure suivente:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 t = (0:.1:2)'; y = [1 1.02 1.29 2.25 7.85 12.64 ]'; plot(t,y,'ro'); hold on; h = plot(t,y,'b'); hold off; title('Input data'); ylim([0 7]) type fitfun start = [1;0]; options = optimset('TolX',0.1); estimated_lambda = fminsearch('fitfun',start,options,t,y,h)Est ce que qqn pourra m'aider sur cette erreure, Je suis encore nouveau en Matlab et j ai jamais utilisé aupart avant. MerciError in ==> C:\Documents and Settings\Administrateur\Bureau\Untitled.m
On line 15 ==> plot(t,y,'ro'); hold on; h = plot(t,y,'b'); hold off;
Partager