[Eeglablist] Error running PCA
Clement Lee
cll008 at eng.ucsd.edu
Wed Sep 4 09:53:52 PDT 2019
Hi Matt,
If you put a breakpoint on line 522 you can check the size of each
variable. From there, you can figure out which matrix is causing the error
and the extra or missing dimensions would help you diagnose what happened
upstream.
Best,
Clement Lee
Applications Programmer
Swartz Center for Computational Neuroscience
Institute for Neural Computation, UC San Diego
858-822-7535
On Wed, Sep 4, 2019 at 9:44 AM Clement Lee <cll008 at eng.ucsd.edu> wrote:
> Hi Matt,
>
> If you put a breakpoint on line 522 you can check the size of each
> variable. From there, you can figure out which matrix is causing the error
> and the extra or missing dimensions would help you diagnose what happened
> upstream.
>
> Best,
> Clement Lee
> Applications Programmer
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, UC San Diego
> 858-822-7535
>
>
> On Wed, Sep 4, 2019 at 9:39 AM Gunn, Matthew P <mathewgunn1 at siu.edu>
> wrote:
>
>> Good morning,
>>
>> When running the following commands in a script:
>>
>> EEG = pop_runica(EEG, 'icatype', 'binica', 'pca',30,'extended',1);
>> EEG = pop_subcomp( EEG, [1], 0);
>> EEG = pop_select( EEG,'nochannel',{'OZ'});
>> EEG = eeg_checkset( EEG );
>> EEG = pop_runica(EEG, 'icatype', 'binica', 'pca',29,'extended',1);
>>
>> I get the error
>>
>> Error using *
>> Incorrect dimensions for matrix multiplication. Check that the number of
>> columns in the first matrix
>> matches the number of rows in the second matrix. To perform elementwise
>> multiplication, use '.*'.
>>
>> Error in pop_runica (line 522)
>> meanvar = sum(EEG.icawinv.^2).*sum(transpose((EEG.icaweights *
>>
>> EEG.icasphere)*EEG.data(EEG.icachansind,:)).^2)/((length(EEG.icachansind)*EEG.pnts)-1);
>>
>> Error in Remove_C1_n_PCA29_v1a (line 19)
>> EEG = pop_runica(EEG, 'icatype', 'binica', 'pca',29,'extended',1);
>>
>> I am confused as to why I get this error as the script has worked on
>> other PCs and works when running the command individually in the command
>> window.
>>
>> I am currently using mathlab 2019a and EEGlab 2019
>>
>> Thank you for your time,
>>
>> Matt Gunn
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to
>> eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
>
More information about the eeglablist
mailing list