Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab built-in functions? #158

Open
sean85914 opened this issue Apr 9, 2020 · 2 comments
Open

Matlab built-in functions? #158

sean85914 opened this issue Apr 9, 2020 · 2 comments

Comments

@sean85914
Copy link

I have converted a .m file with some build-in functions in Matlab, such as mkdir, dlmread, sub2ind and imwrite; however, after the conversion, I seen the same functions in converted Python scripts, which are not defined.
Is it possible to convert the function to Python? Or the feature is not supported?
Thanks in advance.

@sean85914
Copy link
Author

sean85914 commented Apr 9, 2020

The matlab file is from here

@praful-dodda
Copy link

I'm very new to this library as well. But I think, you may have to add those particular functions in the file libsmop.py in your somp library. For example if you want to add 'mkdir' function for your generated python file, in the libsmop.py file make a user-defined function named 'mkdir' using the built-in functions os.mkdir() or os.makedirs(). But, the author can explain better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants