Effacer les filtres
Effacer les filtres

Searching files

21 vues (au cours des 30 derniers jours)
bikal shrestha
bikal shrestha le 22 Avr 2012
Is it possible to search the file in the matlab using matlab codes? Plz respond...
  1 commentaire
Jan
Jan le 22 Avr 2012
Please add the necessary details: Are you looking for a file name, or a specific contents of a file?

Connectez-vous pour commenter.

Réponse acceptée

Junaid
Junaid le 22 Avr 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.
You can also try function exist.

Plus de réponses (1)

bikal shrestha
bikal shrestha le 1 Mai 2012
thanks a lot it was really helpful... now i can search the file in any location ....

Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by