How do I access a folder whose name varies?

1 Ansicht (letzte 30 Tage)
Emmanuel Akindele
Emmanuel Akindele am 4 Nov. 2018
Beantwortet: Prakhar Jain am 12 Nov. 2018
I want to check that a folder exists whose name typically changes, as it is the date, followed by time, followed by a constant part.
I tried:
exist([pwd '\*constant'],'dir')
I know something like this works for files, but is there a way to handle this with folders? If anyone knows how to handle this, I'd appreciate it!

Antworten (1)

Prakhar Jain
Prakhar Jain am 12 Nov. 2018
Hi Emmanuel,
I guess exist works for folder also. Follow the link and look at point no. 7. Thanks.

Kategorien

Mehr zu File Operations 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!

Translated by