Bonjour,

Mon problème est le suivant, je demande à un utilisateur de choisir un fichier, et j'aimerais, que son choix apparasse à l'écran.

J'ai le code suivant

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
 
uicontrol('Parent',f,...
    'style','Pushbutton',...
    'string','Parcourir',...
    'Units','normalized',...
    'Position',[0.55,0.75,.3,0.08],...
    'BackgroundColor','w',...
    'FontSize',Police,...
    'Fontweight','light',...
    'Fontangle','oblique',...
    'Callback', 'file_moteur = uigetfile(''*.mdl'');assignin (''base'',''file_moteur'',file_moteur)');
uicontrol('Parent',f,...
    'style','text',...
    'Units','normalized',...
    'Position',[0.4,0.62,.55,0.1],...
    'String',file_moteur,...
    'BackgroundColor','w',...
    'FontSize',Police,...
    'Fontweight','light',...
    'Fontangle','oblique');
L'affichage du nom du fichier (stocké dans la variable file_moteur) ne ce fait pas, quelqu'un pourrait-il m'éclairer ?