To run 'mexw32' from a script.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I want to run '*.mexw32' file from a matlab script(*.m). What is the command to do it?
0 comentarios
Respuesta aceptada
Wayne King
el 21 de Sept. de 2012
Editada: Wayne King
el 21 de Sept. de 2012
Hopefully you're on the correct machine for the mex file, but you just call the function without the mexw32 extension.
out = functioname(a,b);
You have to make sure the mex file is on the MATLAB path. Use addpath() or pathtool to add the folder with the mex file
For example, if you have the Signal Processing Toolbox, levinson() is a mex file. Enter:
>>which levinson
but to call it in a script or from the command line, you just use it like a MATLAB function.
2 comentarios
Andreas Goser
el 21 de Sept. de 2012
Addendum: With "correct machine" Wayne means MEXW32 is for Windows 32 Bit architectures only. See MEXEXT for other extensions.
Más respuestas (0)
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!