Neither did I. SO to the rescue!

http://stackoverflow.com/a/14480039


On Mon, Apr 7, 2014 at 7:05 PM, Hilton Bristow <notifications@github.com>wrote:

> In pymatbridge/matlab/util/pymat_call.m:
>
> > +    try
> > +        switch nout
> > +            case 0
> > +                feval(func, req.args{:});
> > +                response.result = true;
> > +            case 1
> > +                a = feval(func, req.args{:});
> > +                response.result = a;
> > +            case 2
> > +                [a, b] = feval(func, req.args{:});
> > +                response.result = {a, b};
> > +            case 3
> > +                [a, b, c] = feval(func, req.args{:});
> > +                response.result = {a, b, c};
> > +            case 4
> > +                [a, b, c, d] = feval(func, req.args{:});
>
> I didn't know you could do that. Looks perfect!
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/arokem/python-matlab-bridge/pull/63/files#r11373983>
> .
>