Searching files
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Is it possible to search the file in the matlab using matlab codes? Plz respond...
1 Kommentar
Jan
am 22 Apr. 2012
Please add the necessary details: Are you looking for a file name, or a specific contents of a file?
Akzeptierte Antwort
Junaid
am 22 Apr. 2012
yes it is possible to search files.
you can write code as you like. For example I want to search file 'test.txt' in current folder c:/matlab/ then I can do like this.
files = dir('c:/matlab/*.txt');
now files contains all files with txt format. now you can loop for your file.
there are many other ways. This is just example to show you.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Cell Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!