Fixed it by assuming input will be a cell array, and added a function to sanity check weight arrays.
Fixed it by assuming input will be a cell array, and added a function to sanity check weight arrays.

DM-/ML