MATLAB Answers

How can I pass my C# function in Matlab functions input parameters?

2 ビュー (過去 30 日間)
Muhammad Bilal
Muhammad Bilal 2014 年 9 月 10 日
コメント済み: Muhammad Bilal 2014 年 9 月 10 日
Hello Everyone!
I have a scenario that I have some function written in c# and some in Matlab, I have generated native C# dll from matlab, and the matlab function argument takes one function and I want C# function to be executed by that. So i want to pass my c# function when call the matlab function from C#. Can this be done? If so can any one help me :(.
Thanks, Bilal

採用された回答

Friedrich
Friedrich 2014 年 9 月 10 日
Hi,
yes that can be done and there is an example in the documentation which does exactly that. See here
>> web(fullfile(docroot, 'dotnetbuilder/ug/microsoft-visual-basic-integration-examples.html#bswl6fh-1'))
or online.
  3 件のコメント
Muhammad Bilal
Muhammad Bilal 2014 年 9 月 10 日
Thank you very much for the help :)

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by