bonjour,

j'aimerai pouvoir charger un modèle qui aura été choisi dans un répertoire.

si je fais un load, rien ne se passe...

lorsque l'utilisateur aura été cherché son modèle, il y a un bouton qui permet de le charger, mais comment faire?

de plus, j'ai un autre bouton simulation qui permet de lancer la simulation, j'ai mis
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
t=sim('model');
set(hObject,'cdata', t);

mais j'ai une erreur
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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Warning: The model 'model' does not have continuous states, hence
Simulink is using the solver 'VariableStepDiscrete' instead of
solver 'ode45'. You can disable this diagnostic by explicitly
specifying a discrete solver in the solver tab of the
Configuration Parameters dialog, or by setting the 'Automatic
solver parameter selection' diagnostic to 'none' in the
Diagnostics tab of the Configuration Parameters dialog 
> In maquette_bak>pushbutton43_Callback at 162
  In gui_mainfcn at 96
  In maquette_bak at 42
  In @(hObject,eventdata)maquette_bak('pushbutton43_Callback',hObject,eventdata,guidata(hObject))
Warning: Using a default value of 0.2 for maximum step size.  The
simulation step size will be equal to or less than this value.
You can disable this diagnostic by setting 'Automatic solver
parameter selection' diagnostic to 'none' in the Diagnostics page
of the configuration parameters dialog 
> In maquette_bak>pushbutton43_Callback at 162
  In gui_mainfcn at 96
  In maquette_bak at 42
  In @(hObject,eventdata)maquette_bak('pushbutton43_Callback',hObject,eventdata,guidata(hObject))
??? Error using ==> set
uicontrol CData property must be Truecolor
 
Error in ==> maquette_bak>pushbutton43_Callback at 163
set(hObject,'cdata', t);
 
Error in ==> gui_mainfcn at 96
        feval(varargin{:});
 
Error in ==> maquette_bak at 42
    gui_mainfcn(gui_State, varargin{:});
 
Error in ==>
@(hObject,eventdata)maquette_bak('pushbutton43_Callback',hObject,eventdata,guidata(hObject))
 
 
??? Error while evaluating uicontrol Callback
je n'y comprends rien... merci de m'aider!!!