Tutorial: C mex matrix demo

Index matrix in C like you would do in MATLAB!
4K download
Aggiornato 21 dic 2007

Visualizza la licenza

This short tutorial illustrates basic numerical matrix computation in C. I encourage any comments from expirienced mex programmers for style improvement.

This is a nice little function to demonstrate how you can interface MATLAB and C style matricies. There is some example code included showing how you can index your C matricies like you can in MATLAB and how you can use a little function to pass data between them. The actual function is trivial, but illustrates different methods of handling multi-dimensional data using pointers.

This latest version includes updates and copies emails regarding different methods from James Tursa.

Cita come

Nick Clark (2024). Tutorial: C mex matrix demo (https://www.mathworks.com/matlabcentral/fileexchange/17970-tutorial-c-mex-matrix-demo), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2007a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Earth, Ocean, and Atmospheric Sciences in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0

* New files added
* PDF instructions and email contributions from other authors added.