MATLAB: Reshape 1×2 struct to 1×1 stuct where dimension doesn’t match.

combinedimensionsfieldfieldsmergestructstructures

I have a 1×2 stuct with 27 fields.
E.g. I can't plot A cause the dimensions of A(1,1) and A(1,2) don't match. All the values are doubles. And I would like to make it a 1×1 struct so I can work with it. I combined 2 single structs to get this 1×2 struct if this helps.
Any tipps, help??

Best Answer

your_field = [A(1,1); A(1,2)];