Info

This question is closed. Reopen it to edit or answer.

How to remove a file extension?

1 view (last 30 days)
Mario Martos
Mario Martos on 23 May 2016
Closed: Stephen23 on 23 May 2016
Hello, I wanted to ask about how I can remove a file extension because I have a function to call without the extension :
For example:
function[] = main (input)
Where input is an XML file , and after a process that file need to call in another function within it without the XML extension.
That would read:
function = first ( ' file.xml ');
and later that file without the extension in another function within the .m file as :
function[] = second ( 'file ' ) ,
here already without the .xml extension. Thanks in advanced!
  1 Comment
Stephen23
Stephen23 on 23 May 2016
Please stop duplicating your question everywhere:
You already asked this in a comment, and got a very thorough answer.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!