From: Bruno on
Hello,

suppose you have a C function like this:

cFunction ( )
{
....
system('MatlabCode');
....
}

MatlabCode is a deployment executable, built with Matlab's mcc.

How could one return values from MatlabCode( ) to the calling cFunction?

This in Matlab:
function x = MatlabCode( )
....


x=2
end

should work? Because it appears it's not.

Thanks,
Xezi