Error in determining the root folder

1 visualización (últimos 30 días)
Bahar Anvari
Bahar Anvari el 5 de Nov. de 2018
Respondida: Sebastian Castro el 7 de Nov. de 2018
Hi ,
I'm trying to use determineRootFolder but Im getting an error: [Excel_File_Name,templatePath,outputFilePath] = determineRootFolder({Excel_File_Name,templatePath,outputFilePath},{'New Volume','New Volume','New Volume'});
How can I use determineRootFolder properly?
Thanks, Bahar
  3 comentarios
Walter Roberson
Walter Roberson el 5 de Nov. de 2018
determineRootFolder appears to be Java, not MATLAB
Walter Roberson
Walter Roberson el 5 de Nov. de 2018
https://github.com/vshaxe/vscode-checkstyle/blob/master/src/Main.hx or http://www.massapi.com/class/po/PortletRequest.html have java implementations, which appear to do different things, and which do not appear to have the same function signature as you are using.
I do not find a MATLAB function by that name.

Iniciar sesión para comentar.

Respuestas (1)

Sebastian Castro
Sebastian Castro el 7 de Nov. de 2018
If you want the name of the current folder
>> folderName = pwd;
If you want the name of the file containing the MATLAB script/function itself:
>> folderName = fileparts(mfilename('fullpath'));
- Sebastian

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by