>> x = sym(0);
A(1:4,1,1:4) = [ {x} {x} {x} {x};
{x} {x} {x} {x};
{x} {x} {x} {x};
{x} {x} {x} {x} ]
A(:,:,1) =
[1x1 sym]
[1x1 sym]
[1x1 sym]
[1x1 sym]
A(:,:,2) =
[1x1 sym]
[1x1 sym]
[1x1 sym]
[1x1 sym]
A(:,:,3) =
[1x1 sym]
[1x1 sym]
[1x1 sym]
[1x1 sym]
A(:,:,4) =
[1x1 sym]
[1x1 sym]
[1x1 sym]
[1x1 sym]
>> A1 = squeeze(A)
A1 =
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
>> A2 = reshape([A{:}],size(A1))
A2 =
[ 0, 0, 0, 0]
[ 0, 0, 0, 0]
[ 0, 0, 0, 0]
[ 0, 0, 0, 0]
>>
Best Answer