Bonjour,
J'ai créé une variable B dans le workspace, et j'essai de voir si elle existe pour l'utiliser dans une fonction
Mais j'obtients l'erreur:Code:
1
2
3
4
5
6
7
8 function test(varargin) D = exist (evalin('base','B') ,'var'); Vrai = D; if Vrai == 1 display(Vrai) end
Comment puis-je effectuer mon test ?Code:
1
2
3
4
5 ??? Error using ==> exist The first input to exist must be a string. Error in ==> test at 3 D = exist (evalin('base','B') ,'var');