Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I am having C files including .h files for a particular project.How to call these functions in matlab?I would like to run this C file in matlab.Kindly enlighten.
You first need to set up the mex environment in MATLAB; that link should have the relevant information. You also have to put your C files into a very specific format to have matlab mex compile them properly.
Thank you for your reply.Should i give matlab commands for the .c file .Like c codes will be displayed as .m files right or is this just giving a link to run?Kindly help me.
Not sure I understand your question, but MATLAB does have the right color-coding for .c files. You need to run anything you would run in C though by first making a new C file and then editing it, then compiling it into a mex file and then running it. the extension on mex files is .mex, which is the output of the mex compiler.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.