How to call the C# function with one or two ref type arguments?

7 vues (au cours des 30 derniers jours)
The Pirate
The Pirate le 5 Sep 2017
Modifié(e) : The Pirate le 6 Sep 2017
I find help in matlab document, but that is about C# functions with only one argument(ref type). Now, I have a funtion with two ordinary arguments and one ref type argument, like this:
bstatus = CS_function(arg1, arg2, ref arg3)
How could I call this function?

Réponse acceptée

Guillaume
Guillaume le 5 Sep 2017
Have a look at the function signature with methodsview or methods, which should tell you exactly how to call it.
I suspect the calling syntax in matlab would be:
[bstatus, arg3_after] = CS_function(arg1, arg2, arg3_before);
  1 commentaire
The Pirate
The Pirate le 6 Sep 2017
Modifié(e) : The Pirate le 6 Sep 2017
Yes, thank you, It works.
At this moment, I find MATLAB is powerful!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!