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

Using octsympy in MATLAB #1256

Open
jabierros opened this issue Jun 29, 2023 · 5 comments
Open

Using octsympy in MATLAB #1256

jabierros opened this issue Jun 29, 2023 · 5 comments

Comments

@jabierros
Copy link

Hi all!.

Let me know if it is OK to post here. I've not been able to find a different place.

I'm a bit confused with the info in the README.md file about installing on MATLAB

I have some questions:

  1. I don't know where to get octsympy-matlab-2.7.0.tar.gz, I've been able to find a symbolic package in
    Sourceforge
    symbolic-3.1.1.tar.gz
    but for the README.md this seems to be the standard Octave package and that therefore some re-formatting may be needed to conform to MATLAB comment conventions.

  2. I don't know if I need to install python, I suppose that yes, I'm in Ubuntu, so I assume that I can follow the octsympy Octave installation [instructions }(Matlab comment conventions).

  3. I assume then that I can somehow run MATLAB from a venv, in which I have python and sympy. And then be able to fine grain choose the required versions.

  4. By the way, which Python version are you using?.

Thanks!!!

Javier

@cbm755
Copy link
Collaborator

cbm755 commented Jul 1, 2023

Totally fine to post here. The Matlab package is not built by default any more since 3.0.0.

  1. Matlab packages are generally found under "assets" under "releases" but the older versions may not work with recent Python and Sympy.

  2. Yes

  3. Probably? But I'm not an expert on venv.

  4. I'm not sure we document the earliest supported Python. Its probably 3.6 or 3.7 (whatever SymPy has as the minimum for example).

@cbm755
Copy link
Collaborator

cbm755 commented Jul 1, 2023

You can run make matlab_pkg (update: fixed command) to build the package from the latest sources: I haven't tested in Matlab for a while but feel free to file issues for any bugs you find (#-style comments and " strings tend to creep in over time, maybe other incompatibilities, since we only test on Octave).

cbm755 added a commit that referenced this issue Jul 2, 2023
Partial fix for Issue #1256.
@alexvong243f
Copy link
Collaborator

alexvong243f commented Jul 2, 2023

As a side note, this page https://github.com/cbm755/octsympy/releases contains all released tarballs and zip files, including old ones.

You may want to try the v2.9.0 octsympy package for matlab to see if it works out of the box.

@jabierros
Copy link
Author

jabierros commented Jul 7, 2023 via email

@cbm755
Copy link
Collaborator

cbm755 commented Jul 24, 2023

I think I fixed that in the main branch. You can full latest code (not the latest release) or wait for the next release.

If you're not used to git, you might be able to get via the green "Code" butten then "Download ZIP" (but I've never tried this myself)... You might still have to make matlab_pkg to get a package that works in Matlab. Sorry its been a long time since I've tried it in properly Matlab.

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

3 participants