removing an variable from a list of strings
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
so i have this list of string called str, it says cell in matlab. How can i remove any arbitrary variable from that list?
so i have
d = dir;
str = {d.name};
[s,v] = listdlg('PromptString','Select a file:',...
'SelectionMode','multiple',...
'ListString',str)
where str is a list of the files in the directory. I want to remove an arbitary variable in it (i dont want to delete from the directory, just remove it from str) how would i do that? Thanks
0 Commenti
Risposte (1)
Fangjun Jiang
il 3 Ott 2011
str={'a','b','c','d','e','f'};
str([1 3 5])=[]
You might want to check out the function uigetfile(), uigetdir()
0 Commenti
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!