Error using fmincon (line 300) A must have 3 column(s).