Read-only forum archive

singular and matlab

singular and matlab

mark · Thu Feb 09, 2017 8:02 pm

Are there seamless ways to interface between Matlab and Singular?

Re: singular and matlab

mark · Thu Feb 09, 2017 8:33 pm

I found a post in the forum which kind of answers my questions but without specifics.

In Matlab, I would like to use Singular's superior solver of multi-polynomial equations. I have a large Matlab program which needs this solver (since Matlab fails to find solutions when Singular does).

Re: singular and matlab

ren · Fri Feb 10, 2017 4:51 pm

Not sure what your definition of seamless is, but it should be possible in Matlab to write a function which

1) Writes a Singular file with:
- whatever you want to do
- save the result in a file
- $ at the very end

2) Run Singular on the file via "Singular < someFile.sing"

3) Read in that file in Matlab