Mex error that won't fix with reinstall

I'm having trouble in conjunction with Matlab in conjunction with the DMAT package, which needs a c compiler. I was testing my code, I tried to stop it because I spotted a bug, and then an error occurred and Matlab crashed. When I restarted the program, the code I'd already had working was giving me an error about cdfdif having too many arguments.
I tried restarting the computer, and was still getting the error.
I tried reinstalling DMAT, and it would not reinstall.
I tried uninstalling and reinstalling Matlab, SDK, and DMAT, and DMAT still wouldn't reinstall.
I try a patch on SDK I found linked on this forum about linking error but still DMAT would not reinstall.
I uninstalled and reinstalled Matlab again, this time deleting ever Matlab and mex related file between, and still got the same error.
This is the error I'm getting:
The DMAT installer needs to compile a binary file that is appropriate for your system. If you have never compiled MEX-files before, MATLAB may ask you to identify a C compiler. Most compilers will do, including Lcc C. Using included file cdfdif10.c... Building with 'Microsoft Windows SDK 7.1 (C)'. Error using mex LINK : fatal error LNK1104: cannot open file 'cdfdif10.mexw64'
Anyone know how to fix this? I'd appreciate any advice.
I've reinstalled Matlab 3 times in 24 hours, and I'm now up o 2014b. I'm using Microsoft Windows SDK 7.1 as my c compiler.

Respuestas (1)

Levan
Levan el 30 de Nov. de 2014

0 votos

Hi Dana,
What version of MATLAB were you using initially? One of the websites describing DMAT (<http://www.cidlab.com/dmat.php>) says that the latest version DMAT 5 is for MATLAB versions R2008a through R2012a, and it has not been tested on newer versions.
I am having the same issue with the "Error using mex LINK : fatal error LNK1104: cannot open file 'cdfdif10.mexw64." I looked in the toolbox folder and there is a file cdfdif10.mexw32 , so I though changing the 32 to 64 would help. DMAT got successfully installed but when I run "test_main" to test all the functionality, it gives me an error:
>> test_main
DMAT diagnostics are running. This may take a few minutes.
43%Error using cdfdif Too many output arguments.
Error in test_main (line 171)
diagnostics.cdfdif = cdfdif(-.5:.5:3,0,diagnostics.standardparset(1,:));
So I'm stuck here now. I'm trying to install MATLAB 2012a to see if DMAT works there. If you have found a solution by now please let me know.

4 comentarios

VAIBHAV THAKUR
VAIBHAV THAKUR el 1 de Feb. de 2018
Did you found the solution? I am also stuck with the same problem.
Ignacio Martínez
Ignacio Martínez el 20 de Feb. de 2019
Same here.
HANAN AL RAHBI
HANAN AL RAHBI el 23 de Mzo. de 2019
Same here T.T
Jordan-Theresa Deakin
Jordan-Theresa Deakin el 5 de Mzo. de 2023
Editada: Jordan-Theresa Deakin el 5 de Mzo. de 2023
I am a little late but I was able to get test_main to work by navigating to the dmat toolbox folder and running 'mex cdfdif.c'. After this, test_main ran successfully. However, when not in this folder, it gives the same error. This was using MATLAB R2013a.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Oct. de 2014

Editada:

el 5 de Mzo. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by