"Is there any way to change cell to matrix of different dimension?"
Not to a numeric matrix, No. Numeric matrices require consistent dimensions.
You could potentially pad the various parts out with NaN or inf or 0 as required so that the parts were the same shape. That gets a bit complex if the arrays might be different numbers of dimensions.