How can i get function's multiple return values in c#
显示 更早的评论
Dear all,
I create an function with 4 return values and converted dll for .net, when i call that function i can get only first values remaining 3 values are not able get.
function [p,n,d,u] = Function_Apc(input list)
in C# i called as OptiAPC myMpcObj = new OptiAPC()
MWArray obj = null;
obj = myMpcObj.Function_Apc(Inputlist);
in obj value has only p value not others.
How can i get all the 4 values in that variable "Obj"
回答(1 个)
Sathiyaseelan
2012-11-6
1 个投票
1 个评论
Kenery
2014-4-23
Hi,
I'm wondering if the function's outputs are different data types, for example, [struct array, double array] = function(...)
How can I declare the return values in C#?
thanks
类别
在 帮助中心 和 File Exchange 中查找有关 Call MATLAB from .NET 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!