Hello! So my problem is that I have a tridiagonal cell array, say
x y z [] [] [] [] x y z [] [] [] [] x y z [] [] [] [] x y z
Where each tridiagonal element (x, y, and z) is a 2×2 matrix. I want to use the cell2mat function to create a matrix and make each cell array [] element a 2×2 matrix of zeros (so [] -> [0 0;0 0]). So I would end up going from a NxN cell array to a 4Nx4N matrix. When I use cell2mat, however, the []'s are removed and the matrix becomes disordered. Could anyone suggest a tip to make this conversion possible? Thank you! (and thanks for reading, either way)
Best Answer