MATLAB Answers

How to use regexp to split the filepath

6 views (last 30 days)
Sunu
Sunu on 3 May 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

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags