From: Peng Swee Yap on
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.
From: ImageAnalyst on
On Mar 23, 6:24 am, "Peng Swee Yap" <impengs...(a)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" only.

----------------------------------------------------
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.