assertion fail : assert headerbytes == 348 || 540
HHH
on 28 Jun 2023
Latest activity Reply by Christopher Stapels
on 28 Jun 2023
When I run my matlab code, I got this error
I have guaranteed that my header size (info.raw.sizeof_hdr) is 348
but when I run niftiwrite(V, filepath, info), I also got assertion failed
:
Error using assert
Assertion failed.
Error in niftiwrite (line 104)
assert(headerBytes == 348||headerBytes == 540);
Error in processing_final (line 110)
niftiwrite(V{1},strcat(Folderpath,Folder(num,1).name,'\RoiVolume\RCA_revised.nii'),info{1});
How can I fix this problem ?
1 Comment
Time DescendingI would consider posting this question in MATLAB Answers, I think you will get more appropriate help. This forum is about IoT workflows and ThingSpeak.
Sign in to participate