is creating the function the only way to run an m file by another m file ? cause I did not want to get an output or give it an input , cause the main m file is already writing the outputs to a text file
Best Answer
You just need to write the file name on the specific line of your program and make sure the other file exist in the same directory if not go with the absolute path.
breaks up a filename into component parts, including the name and the extension. I'm not really sure what you are asking, but if you get the 'name' part out of that then you can use this and it will be separated from the path and the extension.
Best Answer