www.kluid.comKluid Home | Contact Us  | FAQFAQ    | SearchSearch | DownloadAttachment Manager  | Private messagesPrivate messages  | RegisterRegister  | Log inLog in   
Kluid Forum Index
Forum for Computational Languages & Techniques
 
 Please help us to develop!

Calendar
Can Matlab compile to a DLL ?

 
Post new topic   Reply to topic       Kluid Forum Index -> Matlab : General
Author Message
Biox
----
----


Joined: 12 Mar 2010
Posts: 2
Feedback Score: 0


Medals: None

PostPosted: Fri Mar 12, 2010 7:14 am    Post subject: Can Matlab compile to a DLL ? Reply with quote

A programmer wrote a module for me in Matlab. He was supposed to then convert it to C++

However he has disappeared.

I have an app written in VB6 that needs to use the Matlab module.

If I can compile the Matlab code to a DLL and call that from VB that would do the trick for me.

Is this possible ? If so I'd appreciate being pointed to some reading material or some assistance.

thanks in advance.
Back to top
dr3ad
----
----


Joined: 06 Apr 2010
Posts: 2
Feedback Score: 0


Medals: None

PostPosted: Tue Apr 06, 2010 2:57 am    Post subject: solution Reply with quote

if you have a function called

function y=myfunction(x)
[m,n]=size(x);
k=0;
for i=1:n
k=k+x(i);
end
y=k/n;

then

you can got to the command line after saving that fuction and say

mcc -t -L C -W lib:myfunctionLib -T link:lib myfunction.m libmmfile.mlib

hope this helps
Back to top
Biox
----
----


Joined: 12 Mar 2010
Posts: 2
Feedback Score: 0


Medals: None

PostPosted: Tue Apr 06, 2010 5:46 am    Post subject: Reply with quote

Thanks for the feedback.
Back to top
Display posts from previous:   
Post new topic   Reply to topic       Kluid Forum Index -> Matlab : General All times are GMT - 12 Hours
Page 1 of 1

 


Kluid © 2006, Kluid Management      php.B.B © 2006
www.kluid.comKluid Home | FAQFAQ    | RegisterRegister  | Log inLog in