How to use regexp to split the filepath

4 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su MATLAB Report Generator in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by