The problem is:
Product of known dimensions, 3, not divisible into total number of elements, 16.
this because i want to reshape
a 16x1
matrix in a 3x6
matrix. The problem is that the start matrix has 16 elements and the final matrix has 18. Is there a smart way to reshape row wise and filling the missing element with 0s till the number of elements matches?
Of course I need a general method independent from those number since the size of matrices can change.
TBN: 0s should be at the end of the matrix