How to use regexp to split the filepath

5 vues (au cours des 30 derniers jours)
Sunu
Sunu le 3 Mai 2013
file path= C:\Data\Project\PCOD\PCOD_Model.mdl
I want the model path only like C:\Data\Project\PCOD\.... how can I do it

Réponse acceptée

Image Analyst
Image Analyst le 3 Mai 2013
Use the fileparts() function, not regexp():
[folder, baseFileName, extension] = fileparts(yourFilePath);

Plus de réponses (0)

Catégories

En savoir plus sur File Operations 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