Mostrar comentarios más antiguos
I wish to call my dll (simpledll)from Matlab R2007b; I have loaded the dll successfully. Then from the 'libfunctions' I get the function: "doublePtr changevar(double, doublePtr)" displayed. This looks ok to me, as all it does is inputs a value (double) & returns a value (double).
I tried calling it using the following: in1=2; [out1]=callib('simpledll','changevar',in1);
But I get the following error on the calling line: "Undefined function or method 'callib' for input arguments of type 'char'."
What does this mean; have I got the format for calling the dll wrong; what should I have put?
Respuesta aceptada
Más respuestas (1)
Steve
el 11 de Jul. de 2011
0 votos
3 comentarios
Friedrich
el 11 de Jul. de 2011
Your function changevar expects two inputs but you pass only one input which leads the error that no function with matching structure is found, since you dont have a function called changevar which expects one input.
Steve
el 27 de Sept. de 2011
Kaustubha Govind
el 27 de Sept. de 2011
You said that libfunctions lists the function as "doublePtr changevar(double, doublePtr)" - this indicates that the function has 2 inputs. What is the corresponding signature for the function with one input?
Categorías
Más información sobre Call C from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!