help > Error using file_array/subsasgn>subfun
Showing 1-2 of 2 posts
Display:
Results per page:
Jun 15, 2021  08:06 AM | salemhannoun - AUBMC
Error using file_array/subsasgn>subfun
Hi, 
I downloaded NiiStat and the demo data to test.
However whener I run as mentioned on the tutorial page, I get the below error.
Could you please advise on how to solve this issue?
I have a Matlab 2016b version and using an iMac with a macOS Big Sur version 11.4.

**** Analyzing First_Try with 50 participants for behavioral variable WAB__AQ across 4628988 (of 727066) regions/voxels.
Error using file_array/subsasgn>subfun (line 164)
Error: File: mat2file.m Line: 16 Column: 7
Character vector is not terminated properly.

Error in file_array/subsasgn (line 85)
subfun(sobj,double(dat),args{:});
Error in spm_write_plane (line 31)
V.private.dat = subsasgn(V.private.dat,S,dat);
Error in spm_write_vol (line 84)
V = spm_write_plane(V,Y,':');
Error in nii_stat_core>saveSumMapSub (line 484)
spm_write_vol(hdr,sumImg);
Error in nii_stat_core (line 106)
saveSumMapSub(hdr, sumImg,statname);%, voxMask); %create image showing sum of values
Error in NiiStat>processExcelSub (line 1075)
nii_stat_core(les, beh, beh_names,hdr, pThresh, numPermute, logicalMask,statname, les_names, hdrTFCE,
nuisance);
Error in NiiStat (line 261)
processExcelSub(designMat, roiIndex, modalityIndex,numPermute, pThresh, minOverlap, regressBehav,
maskName, GrayMatterConnectivityOnly, deSkew, customROI, doTFCE, reportROIvalues, xlsname, kROIs, doSVM,
doVoxReduce, hemiKey, interhemi, statname,GUI, nuisanceMat); %%GY
Error in NiiStatGUI/GOButtonPushed (line 448)
NiiStat;
Error in appdesigner.internal.service.AppManagementService/tryCallback (line 207)
callback(app, event);
Error in
matlab.apps.AppBase>@(source,event)tryCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 262)
Error while evaluating Button PrivateButtonPushedFcn

Thank you for your help
Best regards
Salem
Jun 15, 2021  01:06 PM | Roger Newman-Norlund
RE: Error using file_array/subsasgn>subfun
Hello Salem,

The latest version of NiiStat (which can be run using the NiiStatGUI command) requires a later version of Matlab than you have installed, so you should upgrade to the latest version if possible.

Alternatively, you can still run the legacy version of NiiStat (which does not have a fancy GUI).

That can be downloaded here:
https://github.com/neurolabusc/NiiStat/r...

Best,

Roger