Fix join

Fixes the additional issues discussed in https://github.com/nschloe/matlab2tikz/pull/242 . Feel free to cherry-pick if you don't like the cellfun.