How to run C codes in Matlab on linux?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello everyone! I'm working on Linux system. There are some C codes written on windows and used in matlab with mex, but it seems that mex is not available on Linux... Could anyone tell me how can I run C codes with matlab on Linux? Thanks a lot.
0 comentarios
Respuestas (1)
Aghamarsh Varanasi
el 9 de Nov. de 2020
Hi,
C code can be compiled in Linux using the mex command. Ensure that you have gcc installed in your machine. If you are compiling the C code for the first time, run the following command to see which compiler is used to compile the C code.
mex -setup
You can also refer to the following example to Create C Source MEX Files.
2 comentarios
Ver también
Categorías
Más información sobre MATLAB Compiler en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!