Removing part of file name (random numbers )
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I need to remove part of fodler names that contains random numbers so I cannot really use strrep.
the files look like this "A_m_T17__75788", "A_m_T18__63071", "A_m_T19__51148" and I want to replace it with "A_m_T17","A_m_T18" ,"A_m_T19" so on and so forth.
Appreciate any help or guidance!!
0 Kommentare
Akzeptierte Antwort
Jan
am 9 Mär. 2022
Names = ["A_m_T17__75788", "A_m_T18__63071", "A_m_T19__51148"];
Cleaned = extractBefore(Names, '__')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deploy to C++ Applications Using mwArray API (C++03) 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!