Page 1 of 1
Convert CSV to EDF files?
Posted: Sat Jun 13, 2020 7:11 am
by juliabaggins
Hi,
Does anyone know if there is a way to convert CSV files into EDF files?
Best,
Julia
Re: Convert CSV to EDF files?
Posted: Sat Jun 13, 2020 11:39 am
by James
What is EDF? What app are you trying to import the data in to? I have a script for MATLAB on the site already.
Re: Convert CSV to EDF files?
Posted: Wed Jun 09, 2021 9:53 am
by keto
Hi,
I'm a complete Matlab newbie. When trying to use (run) the MMIMPORT.M script for my csv:
function [museData, museElements] = mmImport('mindMonitor_2021.csv')
I get an error:
>> mmImport
Error: File: mmImport.m Line: 1 Column: 46
Invalid expression. Check for missing multiplication operator, missing or
unbalanced delimiters, or other syntax error. To construct matrices, use
brackets instead of parentheses.
I'm sure I'm doing something wrong, but cannot figure out what that is
Anyone?
Re: Convert CSV to EDF files?
Posted: Wed Jun 09, 2021 10:42 am
by James
You don't need to type the word "function" when using the script.
Run it like this, (as per the usage example in the script) :
Code: Select all
[museData, museElements] = mmImport('mindMonitor_2021.csv')
Re: Convert CSV to EDF files?
Posted: Wed Jun 09, 2021 11:54 pm
by keto
Hmm... Thanks, but:
Attempt to execute SCRIPT mmImport as a function:
/Users/antti/Documents/MATLAB/mmImport.m
Error in mmImport (line 1)
[museData, museElements] = mmImport('mindMonitor_2021.csv')
Re: Convert CSV to EDF files?
Posted: Thu Jun 10, 2021 9:21 am
by James
Copy the scripts to the correct folder. Do not edit them.
Then to run a script, you just need to type the command into the command window to run the script with the correct parameters.
Re: Convert CSV to EDF files?
Posted: Sat Jun 12, 2021 12:03 am
by keto
Ah, perfect. Thanks!