VariableNames property must be a cell array

11 ビュー (過去 30 日間)
Daniele Dal Degan
Daniele Dal Degan 2018 年 1 月 25 日
回答済み: Arun Mathamkode 2018 年 1 月 30 日
Hi, I am a new user in MATLAB and I'm doing a simple program for import run of TREC in my MATLAB code. I have an error while I'm using this command:
rn = importRunFromFileTRECFormat('FileName', {'combsum.txt'});
and I have this error:
Error using importRunFromFileTRECFormat (line 411)
The VariableNames property must be a cell array, with each element containing one nonempty character vector.
The file combsum.txt exists in the same directory of my source code.
Can you tell me if I am doing a mistake?

回答 (1 件)

Arun Mathamkode
Arun Mathamkode 2018 年 1 月 30 日
Since importRunFromFileTRECFormat is not a MATLAB in-built function, I believe you might have been using any custom function (may be from file exchange). Please refer the function to see how to pass input argument VariableNames to that function. Also please make sure that you follow the correct order of the input arguments.

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by