How can I pass my C# function in Matlab functions input parameters?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad Bilal
el 10 de Sept. de 2014
Comentada: Muhammad Bilal
el 10 de Sept. de 2014
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
0 comentarios
Respuesta aceptada
Friedrich
el 10 de Sept. de 2014
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'))
3 comentarios
Friedrich
el 10 de Sept. de 2014
It a lot and it's also points to the shipped demo files. Try looking up the source:
matlabroot\toolbox\dotnetbuilder\Examples\VS8\NET\OptimizeExample
MATLABROOT is the installation folder of your MATLAB.
Or try opening the documentation and search for "BananaFunction".
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!