Error in determining the root folder

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 件のコメント

Adam
Adam 2018 年 11 月 5 日
What is determineRootFolder and what is your error? If you want a quick answer to your question give people the information they need to help!
Walter Roberson
Walter Roberson 2018 年 11 月 5 日
determineRootFolder appears to be Java, not MATLAB
Walter Roberson
Walter Roberson 2018 年 11 月 5 日
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.

サインインしてコメントする。

回答 (1 件)

Sebastian Castro
Sebastian Castro 2018 年 11 月 7 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeCall MATLAB from Java についてさらに検索

タグ

質問済み:

2018 年 11 月 5 日

回答済み:

2018 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by