salut;
je veux ajouter dans liste box en appuyant dans un boutton, j'ai mi le code suivant:
mais j'ai obtenu l'erreur suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 handles.listbox1=Circuit; a=get(handles.edit1,'String'); oldligne=get(handles.listbox1,'string'); newligne=strvcat(oldligne,a); set(handles.listbox1,'String',newligne); close(ajouFctCIR);
si quelqu'un peut m'aider svp et me dire comment strvcat fonctionne?
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 ??? Error using ==> char Inputs must be character arrays. Error in ==> strvcat at 31 s = char(varargin{notempty}); Error in ==> ajouFctCIR>pushbutton1_Callback at 61 newligne=strvcat(oldligne,a); Error in ==> gui_mainfcn at 96 feval(varargin{:}); Error in ==> ajouFctCIR at 16 gui_mainfcn(gui_State, varargin{:}); ??? Error while evaluating uicontrol Callback
Partager