Output of structconv.m changed -> need to review usage
Created by: jutako
The output of structconv.m was changed (last fall) such that all output arrays are cell arrays, even for numeric values, for which a matrix would be a more natural format to work on. I have thus far fixed one problem that arose because of this change, but I suspect there will be more. Luckily the change will cause errors to be thrown as the permitted operations on matrices and cell arrays differ considerably.
We have two options:
- keep the current logic and check that all functions that use structconv.m operate as expected (using cell2mat.m to convert a cell array to a matrix if needed)
- revert the change and the one fix I already made
If there is a native Matlab function or short expression to do the conversion without structconv.m, I would also be happy to ditch the whole function.