Pass text from an edit text to a lisbox
Mostra commenti meno recenti
Hello everyone,
I have a edit text to write (with a random lenght) :
C7-H9 ; HH-PP; ( like this example, every word is separated from the next one by a '';'')
and i want to pass this to a listbox (after write everything i want in the edit text). I have a 'Go' button to pass this. My doubt it's how can i pass from
C7-H9 ; HH-PP
to a list box and see all the information in the listbox like this:
C7-HH HH-PP (in different lines, like a matrix (2,5)
Any ideas???? Thanks for help.
Risposta accettata
Più risposte (2)
Nuno Fernandes
il 11 Lug 2011
0 voti
Fangjun Jiang
il 11 Lug 2011
a={'B7-F9','B8-H9'};
b=regexp(a,'-','split');
strcmp(b{1},'C3')
strcmp(b{2},'C3')
Categorie
Scopri di più su Desktop in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!