Filter löschen
Filter löschen

Make a string variable from a path in computer without have to type it manually

1 Ansicht (letzte 30 Tage)
the path to reach the files in my computer is:
C:\Users\Windows\Desktop\FID RMN BASE DE DADOS\H\ioanis_NAME*OF*THE*SAMPLES_h.fid\procpar
C:\Users\Windows\Desktop\FID RMN BASE DE DADOS\H\ioanis_MC8R2_h.fid\procpar
C:\Users\Windows\Desktop\FID RMN BASE DE DADOS\H\ioanis_MC7F22_h.fid\procpar
C:\Users\Windows\Desktop\FID RMN BASE DE DADOS\H\ioanis_MC8RXADsaco2_h.fid\procpar
C:\Users\Windows\Desktop\FID RMN BASE DE DADOS\H\ioanis_ppt2_h.fid\procpar
How can i read only the name of the samples and make a variable < 4x??? char > withot have to type the name of the samples manually
its going to be like this str='NAME*OF*THE*SAMPLES';'MC8R2'; 'MC7F22';'ppt2'

Akzeptierte Antwort

Rafael Freire
Rafael Freire am 7 Jul. 2011
[pathNames, dirNames, fileNames] = dirwalk('C:\Users\Windows\Desktop\FID RMN BASE DE DADOS\H\')

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by