MATLAB Answers

Is running MEX functions possible in MATLAB Mobile

6 views (last 30 days)
David Powell
David Powell on 30 May 2018
Commented: David Powell on 31 May 2018
I'm attempting to run some software I've developed on MATLAB desktop on MATLAB mobile and am getting a Attempt to execute SCRIPT as FUNCTION error when trying to call a MEX function. Does anybody know if it's possible to run MEX functions in mobile?


Walter Roberson
Walter Roberson on 31 May 2018
Which architecture did you compile the mex for? If I recall correctly, MATLAB Online uses Linux.
MATLAB Mobile can either connect to MATLAB Online or to your own host. If you are using it to connect to our own host, then you can have it run whatever mex are appropriate for your system.
David Powell
David Powell on 31 May 2018
Hi, thanks for your reply, I compiled the files on a mac then copied them into MATLAB drive which I guess is why it isn't working. I've tried compiling in MATLAB online but am getting an error saying the command mex is not supported. I'll try compiling on a linux machine and see if that works.

Sign in to comment.

Answers (1)

Jan on 30 May 2018
Du you have the Signal Processing Toolbox? The call the buffer command, which is a mex function.
Do you have an M-file for the help section of the documentation of the C-mex file? Can you post a copy of the error message? Add the information, what the current path is - when this is meaningful in Matlab Mobil.


Sign in to comment.


Community Treasure Hunt

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

Start Hunting!