Ledalab Batch Command Import Errors
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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!
0 Kommentare
Antworten (1)
Piyush Dubey
am 30 Aug. 2023
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Install Products finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!