MATLAB: ERROR ‘All matrix must be the same length’

lenghtMATLAB Online Servermatrix

I'm trying to run a very large matrix and occasionally I get the error 'All matrix must be the same length'. When I check, the line seems to be the same lenght than the rest, so I don't know what's wrong…
The highlighted line in the screenshot is an example:

Best Answer

You appear to be using comma for decimal point. MATLAB thinks that the commas are there to separate values.
Related Question