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

1 次查看(过去 30 天)
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'

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by