필터 지우기
필터 지우기

Ledalab Batch Command Import Errors

조회 수: 5 (최근 30일)
Emma Walker
Emma Walker 2023년 6월 9일
답변: Piyush Dubey 2023년 8월 30일
Hello!
I am trying to import a pile of EDA data into ML using the Ledalab Batch command, the documentation for which is here. The data is in csv files so I tried to convert it to both .txt and .mat formats to upload .. to no success.
This is the function call I have been using.
Ledalab('/Users/emmawalker/Desktop/ThinkAloud/Paulo/EDA Data/', 'open', 'text2', 'analyze','CDA', 'optimize',1)
I read online to use 'text' or 'text2' for the .txt filetypes and 'mat' for .mat but none have worked out and yielded the following error below:
Can anyone help out? Manually doing it one-by-one in the gui works but cant figure it out at scale. This batch feature is designed to pull from the entire folder.
Thanks in advance!

답변 (1개)

Piyush Dubey
Piyush Dubey 2023년 8월 30일
Hi Emma,
I understand that you are having trouble while trying to import EDA data to MATLAB using Ledalab batch command.
The terminal output here is suggesting that MATLAB was unable to open and import the file during the Batch-Analysis of these data files after conversion to .m and .txt respectively.
In this case, there can be a possibility that the files that are to be converted are not in the MATLAB path and the conversion of the .csv file did not occur or it might can also occur if the file was successfully converted to .m and .txt" file but has been saved at a different location which is not included in MATLAB’s path.
Please refer the following MathWorks Documentation link for more information on “MATLAB path”:
Besides, using absolute full file path can also help eliminate any errors that may arise because of using relative path and any other confusion in determining the location of a file.
input=fullfile('filepath','data.csv');
Wrapping the code in a try catch block can help understand if the referred file is in the expected path or not.
Please refer the MathWorks Documentation link below for more information on fullfile()” command:
I hope this helps.

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by