How do I invoke a piece of Python code created and maintained in the Aptana IDE, within my MATLAB code.
Show older comments
I've consulted the documentation for calling Python functions from MATLAB (<http://www.mathworks.com/help/matlab/matlab_external/call-user-defined-custom-module.html>)
This file says "Change your current folder to a writable folder." I'm not clear where I'm supposed to be when I do this. I would expect that I should be in my Aptana IDE, where I develop my Python code, and that the Aptana folder -- already writable -- is the "current folder". But this is quite unclear, because the next line in the documentation says:
"Open a new file in MATLAB® Editor."
I would expect that to be from the MATLAB IDE, which is in a completely different part of my file system. The next line in the documentation says:
"Copy these commands and save the file as mymod.py."
But I can't do that in the MATLAB IDE, so this must mean in Aptana. A little later the documentation says:
"In the mymod.py source file, read the function signature for the search function. The function takes one input argument, words."
I'm afraid I don't know what it means to "read the function" here. Does it mean I should set up a Python main() within which I get this defined? I'd sure appreciate something spelled out in smaller steps. I can't get this important capability to work. Thx.
Accepted Answer
More Answers (0)
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!