フィルターのクリア

Error while calling 'mdfimport' function in a script

3 ビュー (過去 30 日間)
Jayesh Khatri
Jayesh Khatri 2019 年 3 月 4 日
コメント済み: Jayesh Khatri 2019 年 3 月 8 日
I am calling the 'mdfimport' file in a script to load the data from INCA (.dat) file to a .mat file.
When I am passing only the file name, it works and loads all the parameters in the Workspace. The command for the afore mentioned case is:
mdfimport('test_001.dat')
However, when I try to input more parameters with the following command e.g.
mdfimport('test_001.dat','test_001.mat');
I get the following error:
Operands to the || and && operators must be convertible to logical scalar values.
Error in mdfimport (line 55)
test= ~isempty(varargin{2}) && isgraphics(varargin{2});
I might be missing something trivial. Any help is appreciated. Thanks in advance.
  1 件のコメント
Abhishek Singh
Abhishek Singh 2019 年 3 月 7 日
Try using this, Automatic name would solve your query.

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

採用された回答

Abhishek Singh
Abhishek Singh 2019 年 3 月 8 日
I think if you want to have a mat file with the name as same as the dat file then you may use this:
mdfimport('test_001.dat', 'Auto MAT-File')
As this is an inbuilt function.
You may refer this link for the same:
  1 件のコメント
Jayesh Khatri
Jayesh Khatri 2019 年 3 月 8 日
Hey thanks for your help. I found the problem and it is working now.
The same issue is discussed in Comments under this link.
Cheers.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by