By J dane
Is it possible to create 3D matrix from 1xm matrix? I would like to separate each column of the matrix into 3rd dimension. This is the related question. However, it doesn’t involve multiples of 1xm matrices, which I did.
a=randi([1 5], [1 100]); b=randi([1 5], [1 100]); c=randi([1 5], [1 100]); d=randi([1 5], [1 100]); %this is where I wanted to split the matrix when assembling K=[b d a; b 0 a; b c a];
K matrix should be
Thanks for any input!
Source: Stack Overflow