How to use regexp to split the filepath

5 visualizaciones (últimos 30 días)
Sunu
Sunu el 3 de Mayo de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by