How to use regexp to split the filepath

4 ビュー (過去 30 日間)
Sunu
Sunu 2013 年 5 月 3 日
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

採用された回答

Image Analyst
Image Analyst 2013 年 5 月 3 日
Use the fileparts() function, not regexp():
[folder, baseFileName, extension] = fileparts(yourFilePath);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by