Guidance needed in creating mexw64 file from Matlab File Exchange source code
44 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm looking for a very simple introduction to compiling C code into a mexw64 library file. I'm not a C programmer, but I suspect all it takes is a couple of Matlab commands. Hopefully someone out there can give me guidance!
Specifically, I wish to create a .mexw64 file from source code that I found in Matlab's File Exchange called "Polygon Clipper"
The files supplied there are:
gpc.c, gpc.h, gpc_mexfile.c, gpc_mexfile.h, PolygonClip.dll, ReadMe.txt, PolygonClip_example.m, PolygonClipper_Example.png
I have 64 bit Matlab 2010b running on Win7 64 bit, with the following toolboxes installed:
* Control System Toolbox
* Data Acquisition Toolbox
* Financial Toolbox
* Image Processing Toolbox
* Neural Network Toolbox
* Optimization Toolbox
* Robust Control Toolbox
* Signal Processing Toolbox
* Simulink
* Simulink Control Design
* Statistics Toolbox
* Symbolic Math Toolbox
* System Identification Toolbox
* Wavelet Toolbox
* Aerospace Toolbox
* Aerospace Blockset
* Bioinformatics Toolbox
* Communications Blockset
* Communications Toolbox
* Curve Fitting Toolbox
* Database Toolbox
* Datafeed Toolbox
* Embedded IDE Link™ CC (for TI’s Code Composer Studio™)
* Filter Design HDL Coder™
* Filter Design Toolbox
* Fixed-Income Toolbox
* Fixed-Point Toolbox
* Fuzzy Logic Toolbox
* Genetic Algorithm and Direct Search Toolbox
* Image Acquisition Toolbox
* Instrument Control Toolbox
* MATLAB® Builder™ NE (for Microsoft® .NET Framework)
* MATLAB Compiler
* Mapping Toolbox
* Parallel Computing Toolbox™
* Partial Differential Equation Toolbox
* Real-Time Workshop
* Real-Time Workshop® Embedded Coder™
* Signal Processing Blockset
* SimEvents®
* SimHydraulics®
* SimMechanics™
* SimPowerSystems™
* Simscape™
* Simulink Fixed-Point
* Simulink HDL Coder
* Spline Toolbox
* Spreadsheet Link™ EX (for Microsoft® Excel®)
* Stateflow®
* Target Support Package™ TC2 (for TI’s C2000™ DSP)
* Target Support Package™ TC6 (for TI’s C6000™ DSP)
* Simulink 3D Animation™
* Vehicle Network Toolbox™
* xPC Target
Do I have everything needed to do this, or do I have to locate and install some sort of C compiler?
4 Kommentare
Walter Roberson
am 5 Mär. 2011
Matt, you can _install_ any toolbox you like, but FlexLM keeps you from _executing_ it if you do not have the proper license.
I work for a _quite_ large company, but licensing all 54 of those toolboxes would be several times the operations budget of my sub-department.
Perhaps Scott is using Academic licenses.
Akzeptierte Antwort
Matt Fig
am 5 Mär. 2011
You will need a 64-bit compiler. MS visual c++ will do the job, if you install the 64 bit version. Beware that many have indicated the 64 bit setup is tricky.
Once you have a compiler installed, do this at the command line:
mex -setup
and follow the directions.
4 Kommentare
Berkan Sesen
am 6 Mär. 2012
Dear Matt, Is there a more light-weight .mexw64 compiler that you know of?
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB Compiler SDK finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!