[Eeglablist] I can't get AMICA 12 to work through MATLAB

Jason Palmer japalmer29 at gmail.com
Sun Jul 27 00:35:12 PDT 2014


Hi Alisha,

 

It looks like the problem is that you have a Windows style path with spaces in directory names. Unfortunately amica12 treats white space as a filename separator. It is saving a temporary file with the data to the current directory with your full name in the path. As a workaround, I would suggest either running runamica12 from a non-whitespace path, like c:\data\eeg\amica, … or at least keeping eeg data in a non-white space path and referencing calling runamica12 with the filename, >> runamica12( ‘c:\data\eeg\mydat.fdt’, ‘numchans’, EEG.nbchan).

 

Best,

Jason

 

From: eeglablist-bounces at sccn.ucsd.edu [mailto:eeglablist-bounces at sccn.ucsd.edu] On Behalf Of Alisha Kozlovsky
Sent: Friday, July 25, 2014 6:37 PM
To: eeglablist at sccn.ucsd.edu
Subject: [Eeglablist] I can't get AMICA 12 to work through MATLAB

 

Hi friends,

I am trying to run AMICA using data I have loaded in EEGLab.

I typed in the following into the MATLAB command line:

 [ EEG.icaweights, EEG.icasphere, mods ] = runamica12( EEG.data(:,:) );

After that, I received this error:

The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
No recognized parallel environment found. Run qconf -spl to get a list of available environments and use keyword use_pe.
Running locally with maximum of 4 threads.
Writing data file: C:\Users\Ali Kozlovsky\Desktop\amica matlab\tmpdata27850.fdt
A subdirectory or file C:\Users\Ali already exists. 
Error occurred while processing: C:\Users\Ali. 
A subdirectory or file Kozlovsky\Desktop\amica already exists. 
Error occurred while processing: Kozlovsky\Desktop\amica. 
A subdirectory or file matlab\amicaouttmp\ already exists. 
Error occurred while processing: matlab\amicaouttmp\. 
Error in ==> runamica12 at 100
if ~isempty(strfind(computer,'64'))

??? Output argument "weights" (and maybe others) not assigned during call to "C:\Users\Ali
Kozlovsky\Desktop\amica matlab\runamica12.m>runamica12".

Then I received a pop-up window titled 'Bad Input' with the following message:

cannot create file in C:\Ali Kozlovsky\Desktop\amica matlab\amicaouttmp\

I am running Windows 7 64-bits and MATLAB 7.12.0 (R2011a).
I have saved the runamica12.m file in a folder called 'amica matlab' on my Desktop.  This folder is in my MATLAB's set path.

Any help will be very appreciated.  Thanks!

Alisha Kozlovsky
Simon Fraser University



  _____  


 <http://www.avast.com/> 

This email is free from viruses and malware because avast! Antivirus <http://www.avast.com/>  protection is active. 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140727/975dd493/attachment.html>


More information about the eeglablist mailing list