Your comments

Thank you for the fast reply. Yes the new version has resolved this.

Sure, 

The following two lines should result in reproducing the error:

DXKX0=eye(3,'mp');

 DXX0(1,:,:)=DXKX0;

Hello,

Similar error for the following lines:
DXKX0=eye(length(X(1,:)),'mp');

DXX0(1,:,:)=DXKX0;

Error using mp/subsasgn (line 1387)
Subscripted assignment dimension mismatch.