From: Jan Simon on
Dear Angela!

> I'm trying to return a vector and 2 scalars using function [a1,a2,a3]=foo(matrix m, matrix y) but for some reason Matlab is only returning the vector. Even when I just try to get two scalars using [a2,a3]=foo(matrix m, matrix y) it only returns one thing. Can someone help me with this bug? I have Matlab 2009b.

Then your function foo has a bug. Please post it. Otherwise it is obviously impossible to find the bug...

Kind regards, Jan