Convert CSV to EDF files?

Post Reply
juliabaggins
Posts: 3
Joined: Mon Jun 08, 2020 2:54 am

Convert CSV to EDF files?

Post by juliabaggins »

Hi,

Does anyone know if there is a way to convert CSV files into EDF files?

Best,
Julia
User avatar
James
Site Admin
Posts: 1109
Joined: Wed Jan 02, 2013 9:06 pm

Re: Convert CSV to EDF files?

Post 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.
keto
Posts: 3
Joined: Wed Jun 09, 2021 9:46 am

Re: Convert CSV to EDF files?

Post 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?
User avatar
James
Site Admin
Posts: 1109
Joined: Wed Jan 02, 2013 9:06 pm

Re: Convert CSV to EDF files?

Post 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')
keto
Posts: 3
Joined: Wed Jun 09, 2021 9:46 am

Re: Convert CSV to EDF files?

Post 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')
User avatar
James
Site Admin
Posts: 1109
Joined: Wed Jan 02, 2013 9:06 pm

Re: Convert CSV to EDF files?

Post 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.
keto
Posts: 3
Joined: Wed Jun 09, 2021 9:46 am

Re: Convert CSV to EDF files?

Post by keto »

Ah, perfect. Thanks!
Post Reply