How to use regexp to split the filepath
3 views (last 30 days)
Show older comments
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
Accepted Answer
Image Analyst
on 3 May 2013
Use the fileparts() function, not regexp():
[folder, baseFileName, extension] = fileparts(yourFilePath);
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!