how to make a script that plots all data loaded from to different repositories?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ano
le 31 Mai 2017
Commenté : Walter Roberson
le 1 Juin 2017
hello! I must plot alot of data, so I would like to know if there is a way how to make a script that loop over all the data files in two different repositories and when the files have a similar number at the end of their names just plot them together. I hope I have made myself clear? any suggestions are very welcomed! thank you!
0 commentaires
Réponse acceptée
Walter Roberson
le 31 Mai 2017
You can use fileparts() to separate the directory and extension from the file specification. After that, the best way to determine the file number (for matching) would depend upon how the file names are structured.
0 commentaires
Plus de réponses (2)
Ano
le 31 Mai 2017
Modifié(e) : Ano
le 31 Mai 2017
3 commentaires
Walter Roberson
le 31 Mai 2017
You asked "when the files have a similar number at the end of their names just plot them together" . Perhaps the file names in the two directories are not identical, just matching in some part of interest to you. You should post a file name from the first directory and the corresponding file name from the second directory.
Ano
le 1 Juin 2017
1 commentaire
Walter Roberson
le 1 Juin 2017
In what way does that help? You do not use filepattern2 in your code?
Voir également
Catégories
En savoir plus sur Historical Contests dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!