MATLAB: Do I receive an assertion error when I create a structure with many dimensions in MATLAB

dimensionsMATLABsegmentationstructureviolation

MATLAB crashes with an assertion error when I run the following code:
X(1,1,1,1,1,1,1,1,1,1,1)=struct('A',1,'B',1,'C',1,'D',1,'E',1,'F',1,'G',1);
Checked all 16 cache memory tables. Found no corrupted tables.
-----------
Assertion detected at Wed Apr 03 11:24:20 2002
-----------
Assertion failed: Forced Assertion at line 1158 of file "./mwmem.c".
Attempt to free unaligned pointer
Configuration:
MATLAB Version: 6.1.0.450 (R12.1)
Operating System: Microsoft Windows 2000
Window System:Version 5.0 (Build 2195: Service Pack 1)
Processor ID: x86 Family 6 Model 8 Stepping 6, GenuineIntel
Virtual Machine:Java 1.1.8 from Sun Microsystems Inc.
Stack Trace:
[0] matlab.exe:_mnSignalHandler(0xffffffff, 0, 0, 1) + 499 bytes
[1] matlab.exe:_ThrowAssertion(0xf9e0a00c, 50309, 0x65737341, 0x6f697472) + 167 bytes
[2] matlab.exe:_MATLABAssertFcn(0x015f5cb8 ": Forced Assertion", 0x015f55f4 "./mwmem.c", 1158, 0x015f5f10 "Attempt to free unaligned pointe..") + 131 bytes
[3] libut.dll:_ut_assertstr(0x015f5cb8 ": Forced Assertion", 0x015f55f4 "./mwmem.c", 1158, 0x015f5f10 "Attempt to free unaligned pointe..") + 25 bytes
[4] libut.dll:_mw_free(1, 0x1d00161c, 0x1d001648, 0x0149cedc) + 62 bytes
[5] libut.dll:_utFree(1, 0x0149cf18, 0x015a80e5, 1) + 25 bytes
[6] libmx.dll:_mxFree(1, 1, 1, 1) + 32 bytes
[7] libmx.dll:_MatchAndResizeIndicesToRHSDimensions(0x02fcc790, 11, 0, 0x1d000adc) + 709 bytes
[8] libmx.dll:_CalculateIndices(0x02fc6dc8, 11, 0, 0x02fcc790) + 230 bytes
[9] libmx.dll:_mxStructureAssignment(0x02fc6d01, 11, 0x0149d458, 0x02fcc790) + 348 bytes
[10] libmx.dll:_mxSubscriptedAssignment(0x02fc6dc8, 11, 0x0149d458, 0x02fcc790) + 1114 bytes
[11] m_interpreter.dll:_inMatassnd(0x02fc6dc8, 11, 0x0149d458, 0x02fcc790) + 152 bytes
[snip]

Best Answer

This bug has been fixed in MATLAB 6.5 (R13).
There are no known workarounds for previous versions of MATLAB.