Prev: "Error closing file" saving structure containing anonymous function
Next: code for extended kalman filter anyone????
From: Peng Swee Yap on 23 Mar 2010 06:24 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 23 Mar 2010 06:39
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. |