
Envoyé par
captaine93
en fait le fullfile ne change rien...
Tu as l'impression que ça ne change rien... 
Sinon pas besoin de EVAL ici :
eval(['save totorr Event002 Eot_ EmStart_ EyeX_ EyeY_ FixSpotOff_ GOCorrect Infos_ Inh NOGOCorrect NOGOEarly NOGOWrong Params Reward_ SKIP_ SSRT SaccAmp SaccBegin SaccDir SaccEnd Sacc_of_interest StopSignal_ Target_ TrialStart_ Trial_type_'])
devient simplement :
save('totorr','Event002','Eot_','EmStart_','EyeX_','EyeY_','FixSpotOff_','GOCorrect','Infos_','Inh NOGOCorrect','NOGOEarly','NOGOWrong','Params','Reward_','SKIP_','SSRT','SaccAmp','SaccBegin','SaccDir','SaccEnd','Sacc_of_interest','StopSignal_','Target_','TrialStart_','Trial_type_')
Une dernière chose, ton code plante si tu ne sélectionnes aucun fichier...
Si tu es dans une fonction, tu peux ajouter la fonction RETURN dans la première condition :
1 2 3 4 5 6
| if isequal(Xbid,0) || isequal(fpath,0)
disp('File not found')
return
else
disp(['File ', fpath, Xbid, ' found'])
end |
Partager