Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to create a .dll from Matlab .m file

Subject: How to create a .dll from Matlab .m file

From: Mashhur

Date: 8 Sep, 2010 09:13:07

Message: 1 of 4

Dear all,

Do you know how to create a .dll from Matlab .m file?
I have an idea that first I should convert .m (Matlab) file to .c (C++) and then by sing s-function in Visual Studio, I can convert it into .dll.

Is there other way faster than mine?

Thanks in advance!

Subject: How to create a .dll from Matlab .m file

From: Wayne King

Date: 8 Sep, 2010 11:21:05

Message: 2 of 4

"Mashhur " <mashhurs@yahoo.com> wrote in message <i67k33$t1v$1@fred.mathworks.com>...
> Dear all,
>
> Do you know how to create a .dll from Matlab .m file?
> I have an idea that first I should convert .m (Matlab) file to .c (C++) and then by sing s-function in Visual Studio, I can convert it into .dll.
>
> Is there other way faster than mine?
>
> Thanks in advance!

Are you interested in sharing your application as an executable? Then see

http://www.mathworks.com/products/compiler/

Code generation is a different workflow (converting MATLAB code to C or C++ code), I'm assuming from your post that you aren't interested in the C code, but merely want an executable app.

Wayne

Subject: How to create a .dll from Matlab .m file

From: Mashhur

Date: 8 Sep, 2010 12:47:05

Message: 3 of 4

"Wayne King" <wmkingty@gmail.com> wrote in message <i67rj1$b7e$1@fred.mathworks.com>...
> "Mashhur " <mashhurs@yahoo.com> wrote in message <i67k33$t1v$1@fred.mathworks.com>...
> > Dear all,
> >
> > Do you know how to create a .dll from Matlab .m file?
> > I have an idea that first I should convert .m (Matlab) file to .c (C++) and then by sing s-function in Visual Studio, I can convert it into .dll.
> >
> > Is there other way faster than mine?
> >
> > Thanks in advance!
>
> Are you interested in sharing your application as an executable? Then see
>
> http://www.mathworks.com/products/compiler/
>
> Code generation is a different workflow (converting MATLAB code to C or C++ code), I'm assuming from your post that you aren't interested in the C code, but merely want an executable app.
>
> Wayne

thnks, I found it from link:http://www-rohan.sdsu.edu/doc/matlab/toolbox/compiler/mcc.html

Subject: How to create a .dll from Matlab .m file

From: ramya sri

Date: 14 Sep, 2010 05:39:09

Message: 4 of 4

"Mashhur " <mashhurs@yahoo.com> wrote in message <i680k9$ako$1@fred.mathworks.com>...
> "Wayne King" <wmkingty@gmail.com> wrote in message <i67rj1$b7e$1@fred.mathworks.com>...
> > "Mashhur " <mashhurs@yahoo.com> wrote in message <i67k33$t1v$1@fred.mathworks.com>...
> > > Dear all,
> > >
> > > Do you know how to create a .dll from Matlab .m file?
> > > I have an idea that first I should convert .m (Matlab) file to .c (C++) and then by sing s-function in Visual Studio, I can convert it into .dll.
> > >
> > > Is there other way faster than mine?
> > >
> > > Thanks in advance!
> >
> > Are you interested in sharing your application as an executable? Then see
> >
> > http://www.mathworks.com/products/compiler/
> >
> > Code generation is a different workflow (converting MATLAB code to C or C++ code), I'm assuming from your post that you aren't interested in the C code, but merely want an executable app.
> >
> > Wayne
>
> thnks, I found it from link:http://www-rohan.sdsu.edu/doc/matlab/toolbox/compiler/mcc.html
thank you for your reply sir,u please send the author name for that book which u have mentioned (ofdm simulation using matlab)

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us