How to remove file extension?

  • Follow


I have a file name in my directory call "test.tiff". How can i remove the ".tiff" file extension? Because i just want to get the filename "test" only.
1
Reply Peng 3/23/2010 10:24:07 AM

On Mar 23, 6:24=A0am, "Peng Swee Yap" <impengs...@gmail.com> wrote:
> I have a file name in my directory call "test.tiff". How can i remove the=
 ".tiff" file extension? Because i just want to get the filename "test" onl=
y.

----------------------------------------------------
Use the fileparts() function to split apart the filename into its
components.
Then use the fullfile() function to reconstruct it without the
extension.
You could also use sprintf() to rebuild the filename.
-1
Reply ImageAnalyst 3/23/2010 10:39:48 AM


1 Replies
1215 Views

(page loaded in 1.324 seconds)

Similiar Articles:













7/24/2012 5:59:13 AM


Reply: