Dear Koji,
I have exactly the same problem with Matlab R13, and I use an english version of
Win 2000. Does anybody know what one should do to make it work?
Regards,
Anne
Anne Larsson
Department of Radiation Physics
Umea University
Sweden
[log in to unmask] den 2002-09-05 12:33:15
Sänd svar till Koji Jimura <[log in to unmask]>
Till: [log in to unmask]
Kopia: (blank: Anne Larsson/US/VLL/SE)
Ärende: problem on Matlab R13
Dear all,
I have a problem with SPM99 on Matlab R13
during statistical parameter estimation.
The error message from SPM99 is:
--------------
Problems seeking through "Y.mad". The error was:
"Offset is bad - after end-of-file or last character written."
Check what has already gone wrong.
---------------
And the message from Matlab is:
----------
error: ==> E:\spm\spm99\spm_append.m
line: 91 ==> my_fseek(fp,ofset,'bof');
error: ==> E:\spm\spm99\spm_spm.m
line: 861 ==> spm_append(Y(:,tmp),'Y.mad',2);
error: ==> E:\spm\spm99\spm_spm_ui.m
line: 1427 ==> spm_spm(VY,xX,xM,F_iX0,xC,xsDes)
??? Error while evaluating uicontrol Callback
------------
Parameter estimation stops at the following function
in spm_append.m:
-------------------------------------
function my_fseek(fp,offset,origin)
sts=fseek(fp.ptr,offset,origin); %%%% <- Here
if sts == -1,
er=ferror(fp.ptr);
my_fclose(fp);
error(sprintf(...
'Problems seeking through "%s". The error
was:\n"%s"\n%s\n',...
fp.fname,er, 'Check what has already gone wrong.'));
end;
return;
------------------------------------------
When upper tail F prob threshold is zero,
estimations run without any problem.
(because Y.mad is not created)
The Release Notes of Matlab R13 says that "fseek" has improved
for 64-bit low-level file handing. The valid file offset for Y.mad
might have changed due to this improvement.
(line 90 in spm_append.m)
---------
ofset = hdrlen + (len + 2*8)*(dim(2)+i-1);
---------
I found this problem on w2k (sp2, 3) and NT4 sp6a.
(All are Japanese) Because I am not quite sure this occurs only
on Japanese Windows, I would like to know someone
has the same problem on other platforms.
Regards,
Koji
-----
Koji Jimura
Department of Physiology,
The University of Tokyo School of Medicine
[log in to unmask]
for reference (from R13 Release Notes)
-----------
64-Bit File HandlingMATLAB low-level file handling functions (fopen,
fseek, ftell, etc.)
now support 64-bit file offsets. This enables you to perform low-level
I/O operations
on files greater than 2 GB in size.
(The limit in previous versions of MATLAB was 2^31-1 bytes, or 2 GB.)
64-bit support is available on the following platforms:
Windows
Solaris
Alpha
HPUX 11.0, 9000/785
64-bit support is not available on the following platforms,
due to limitations imposed by their respective operating systems:
SGI Linux HPUX 10.20, 9000/735 HPUX 11.0, 9000/780 On the IBM-AIX
platform,
64-bit file I/O is supported for reading only. You can write only up to
2 GB.
-----------
|