help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cell array of matrices -> N-d array?


From: Dan Muresan
Subject: Re: cell array of matrices -> N-d array?
Date: Wed, 9 May 2012 20:30:49 +0300

>> NxN cell array of 3x3 matrices
>>
>> to an
>>
>> NxNx3x3
>>
>> N-dimensional array?
>
> Try,
>
>    resize(cell2mat(c), [n,n,3,3])

Hi Jordi, that makes result (1, 1, :, :) non-zero, and the rest of it zero.

Did you mean reshape? I tried reshape with both [n, n, 3, 3] and [3,
3, n, n] and it doesn't seem to preserve the correct order of the
elements.

-- Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]