Matlab Subscripted Assignment Dimension Mismatch Matrix Movie

I am currently trying to use graph-Var on my matrices obtained fromn EEG Connectivity analyses and get an error measure while using the statistics GUI:

----------

Error using cell/ismember (line 27)
Input must be cell arrays of strings.

Error in GraphVar_getDialogData>check_StructureName (line 361)
if(sum(~ismember(name,handles.vpNamesNeo)) && isFirst) && handles.FragCheck ~= 1

Error in GraphVar_getDialogData (line 54)
if(~check_StructureName(handles,forCalcFunc))

Error in GraphVar_calc (line 29)
[returnVal,dialogData] = GraphVar_getDialogData(handles,1,noCorr);

Error in GraphVar>Btn_calcCorr_Callback (line 73)
[res allTask] = GraphVar_calc(handles);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)GraphVar('Btn_calcCorr_Callback',hObject,eventdata,guidata(hObject))

 
Error while evaluating uicontrol Callback

--------

I have already tried to rename the Subjects-ID in the Variables-sheet and the .mat files..Nothing has worked until now.

Additionally I had problems with a few network parmeters:

1) Clustering coefficient:

Error using  ./
Matrix dimensions must agree.

Error in clustering_coef_wu (line 21)
C=cyc3./(K.*(K-1));         %clustering coefficient

Error in clusterMean_wu (line 2)
    D = mean(clustering_coef_wu(W));

Error in CalcVars (line 606)
                                ResultRandVar{i_extSub,r_idx,i_dyn} = eval([functionList{i_func}
                                '(ResultRand{i_extSub,r_idx,i_dyn})']);

Error in GraphVar_calc (line 85)
[res,shuffelFiles] =
CalcVars(dialogData.thresholds,dialogData.thresholdType,dialogData.brainD,dialogData.functionList,handles.vpFiles,'TaskPlaner',allTasks,'MatrixName',dialogData.MatrixName,'FilePo
Error in GraphVar_CalcExport_Callback (line 42)
[res allTasks] = GraphVar_calc(handles,1);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)GraphVar('GraphVar_CalcExport_Callback',hObject,eventdata,guidata(hObject))

 

2) Small-World-Propensity:

 

Error while evaluating uicontrol Callback

Output argument "SWP" (and maybe others) not assigned during call to "G:\Masterarbeit
Daten\GraphVar\GraphVar_beta_v_06.2\src\ext\Network Community Toolbox\small_world_propensity.m>small_world_propensity".

Error in CalcVars (line 606)
                                ResultRandVar{i_extSub,r_idx,i_dyn} = eval([functionList{i_func}
                                '(ResultRand{i_extSub,r_idx,i_dyn})']);

Error in GraphVar_calc (line 85)
[res,shuffelFiles] =
CalcVars(dialogData.thresholds,dialogData.thresholdType,dialogData.brainD,dialogData.functionList,handles.vpFiles,'TaskPlaner',allTasks,'MatrixName',dialogData.MatrixName,'FilePo
Error in GraphVar_CalcExport_Callback (line 42)
[res allTasks] = GraphVar_calc(handles,1);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)GraphVar('GraphVar_CalcExport_Callback',hObject,eventdata,guidata(hObject))

 
Error while evaluating uicontrol Callback

 

3)

Subscripted assignment dimension mismatch.

Error in GraphVar_CalcExport_Callback (line 108)
                    globalOut(:,globalC) = [tmpFunctionList{i_func} ; rot90(Result,3)];

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});

I have implemented the following script probably every time I need to load a bunch of images into matlab. This time, I am going to save it for the future:)

%// list all the files in some folder somefolder = '~/Images/'; filelist = dir(somefolder); images = []; %// the first two in filelist are . and .. count = 1; for i=3:size(filelist,1) %// filelist is not a folder if filelist(i).isdir ~= true fname = filelist(i).name; %// if file extension is jpg if strcmp( fname(size(fname,2)-3:size(fname,2)) ,'.jpg' ) == 1 tmp = imread([somefolder fname]); %// convert it to grayscale image if tmp is a color %// image/picture if size(tmp,3) == 3 tmp = rgb2gray(tmp); %//resize of image %tmp = imresize(tmp,[320 240],'bilinear'); %// put it into images buffer images(:,:,count) = tmp; count = count +1; %images = [images tmp]; disp([fname ' loaded']); end end end

Like this:

LikeLoading...

Related

This entry was posted on Saturday, March 8th, 2008 at 1:51 am and is filed under matlab, Source Code. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 Thoughts to “Matlab Subscripted Assignment Dimension Mismatch Matrix Movie

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *