View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 402 Location: A'dam/Diemen, The Netherlands
|
Posted: Mon May 07, 2012 11:49 am Post subject: [matlab][solution] Get file directory or extension of file |
|
|
Use fileparts and you will get the directory without using any / or \ explode usage.
Code: | >> fullpath
fullpath = /home/user/www/site/trunk/tempuploads/test/174_bw_tractsresize.png
>> [pathstr, name, ext] = fileparts(fullpath)
pathstr =
/home/user/www/site/trunk/tempuploads/test
name =
174_bw_tractsresize
ext =
.png |
|
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Mon May 07, 2012 11:49 am Post subject: [matlab][solution] Get file directory or extension of file |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Mon May 07, 2012 11:49 am Post subject: [matlab][solution] Get file directory or extension of file |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|