I have created a .NET assembly of the following:
function sample_data = samplefunctionsample_data = uint16(5639*ones(20,60));
Next, I try to use the generated component in a C# console project as follows:
SanpleProj.SampleFunctionClass obj = new SampleProj.SampleFunctionClass(); try { MWArray argsOut = null; argsOut = obj.samplefunction(); Console.WriteLine("Arg 1: {0}", argsOut); } catch (Exception ex) { Console.WriteLine(ex.Message); }
I get the following exception in Visual Studio:
Exception of type 'System.ArgumentOutOfRangeException' was thrown. Parameter name: numArgsOut
Best Answer