an error occured when using dparsfa


professor Yan, when i processed my data with dparsfa based on matlab2013a, spm12, an error always occured.

but i 'm sure that i had used same parameters processed data successfully once a time

just with smooth value change from 4mm to 6mm

here are the infor that shoewed in matlab :


出错 y_spm_orthviews>addcolourbar (line 883)
if st{curfig}.mode == 0,

出错 y_spm_orthviews>addtruecolourimage (line 824)

出错 y_spm_orthviews (line 511)
        addtruecolourimage(varargin{1}, varargin{2},varargin{3}, varargin{4}, ...

出错 y_Call_spm_orthviews (line 149)

出错 DPARSFA_run (line 2980)
            H = y_Call_spm_orthviews(Ch2Filename,0,0,0,18,Filename,jet(64),0,250,H,0.8);

出错 DPARSFA>pushbuttonRun_Callback (line 1786)

出错 gui_mainfcn (line 95)

出错 DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});

计算 UIControl C

Usually restarting your matlab can solve such a problem.

Dear professor Yan,

Thanks for your reply!the problem has been solved :)

Though i have no ideal how the results came out successfully,cause i had tried your solution before, i even tried restart my computer, it didnt work.

It seems that fortune played a role in it.

Anyway, thanks!

Now, i have the result images, and i want to map it to 3D brain to generate a picture like the image i upload.

How can i realize it?

Could you please recommend some software or other methods?

Thanks again!

Best wishes!



Please go through, and pay attention to the resutls viewing part.

Dear professor Yan,

Thanks for your instruction,

i have found the precise vedio you refer, and it is amazing!

And i do what you told in the vedio, but the matlab keeps give me these error information:


Attempted to access tmax(0); index must be a positive integer or logical.

Error in BrainNet>CutMesh (line 811)

Error in BrainNet>FileView (line 4008)
                    [t,tl,tr,vl,vr,h1,w1,cut,cuv]=CutMesh(surf); %%% Edited by Mingrui
                    Xia,111027, move FLAG.IsCalledByREST judgement into function

Error in BrainNet>NV_m_nm_Callback (line 385)

Error in gui_mainfcn (line 96)

Error in BrainNet (line 53)
    gui_mainfcn(gui_State, varargin{:});

Error in y_CallBrainNetViewer (line 149)

Error in DPABI_VIEW>MorePopup_Callback (line 1401)

Error in gui_mainfcn (line 96)

Error in DPABI_VIEW (line 44)
    gui_mainfcn(gui_State, varargin{:});

Error in

You can use an older verison of BrainNet Viewer. I have told Dr. Xia for this issue.

Dear professor Yan,

I have got the 3D images successfully.

And i really appreciate the help you provide to me!

thanks a lot!!

best wishes!


Could you tell me how you fixed your errror when trying to plot in BrainNetViewer?

This is the error I am getting:

Array indices must be positive integers or logical values.
Error in DPABI_VIEW>MorePopup_Callback (line 1392)
Error in gui_mainfcn (line 95)
Error in DPABI_VIEW (line 43)
    gui_mainfcn(gui_State, varargin{:});
Error in>@(hObject,eventdata)DPABI_VIEW('MorePopup_Callback',hObject,eventdata,guidata(hObject)) 
Error while evaluating UIControl Callback.