sparse2 mexFunction not found

I downloaded sparse2.m form SuiteSparse .
But when I use
D = sparse2(i,j,s);
It shows error
Error using sparse2 (line 27)
sparse2 mexFunction not found
Where can 'sparse2 mexFunction' be founded?

2 commentaires

James Tursa
James Tursa le 22 Juin 2018
Does this package come with C/C++ source code that you need to compile yourself?
JAI PRAKASH
JAI PRAKASH le 22 Juin 2018
It has some C files. Please have a look on the files it has.

Connectez-vous pour commenter.

Réponses (1)

Jan
Jan le 22 Juin 2018

0 votes

Did you read the README.txt file and followed the instructions?
================================================================================
QUICK START FOR MATLAB USERS (Linux, Mac, or Windows): uncompress the
SuiteSparse.zip or SuiteSparse.tar.gz archive file (they contain the same
thing), then in the MATLAB Command Window, cd to the SuiteSparse directory and
type SuiteSparse_install. All packages will be compiled, and several demos
will be run. To run a (long!) exhaustive test, do SuiteSparse_test.
================================================================================
Was SuiteSparse_install successful? If not, which error messages did you get?

3 commentaires

Jorge Barrasa Fano
Jorge Barrasa Fano le 4 Mar 2019
Hi Jan,
I have a similar problem, during installation of SuiteSparse, I get this error message:
"c:\users\...\downloads\suitesparse-5.4.0.tar\suitesparse\metis-5.1.0\gklib\GKlib.h(68): fatal error C1083: Cannot open include file: 'regex.h': No such file or directory"
I get the same error message for some packets within SuiteSparse (such as CHOLMOD, KLU or SuiteSparseQR) but for others it works fine. Is there anything I'm missing?
Thanks,
Jorge
Jan
Jan le 4 Mar 2019
Does this mean, that you try to run the files inside the compressed "suitesparse-5.4.0.tar" folder? Please explain with details, what you are doing.
If I get the error message "Cannot open include file: 'regex.h': No such file or directory", I'd search for this file manually at first. Which compiler are you using?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Files and Folders dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by