F. Blanchard said:Hi.
I am trying to use try-catch function but when an error occurs the code between catch and end is not calculated.
So i tried to put on the errcatch function wihtout results.
Can anyone explain me why ?
Here is tcode :
errcatch(-1,"continue");
try
data=fscanfMat('MESURE-FB.TMP');
choix=data(data(:,1)==NumPiece,:);
catch
choix=[NumPiece,-1000,-1000];
end
errcatch(-1);
Thank you.
Frédéric
Hi.
You cannot use errcatch with try..catch.
I usually use pause for debugging.
To see what is wrong try:
try
data=fscanfMat('MESURE-FB.TMP');
choix=data(data(:,1)==NumPiece,:);
catch
pause
choix=[NumPiece,-1000,-1000];
end
Stanislav