MEX func Error:"requires medical imaging toolbox" in Matlab R2022b

11 visualizzazioni (ultimi 30 giorni)
Hi, I am trying my old Mex func with Matlab R2022b, but this error occurs "requires medical imaging toolbox". But the same Mex works OK with no error in lower versions (R2022a and lower). Does anyone know the possible root cause and how to solve this?
Thanks.
  7 Commenti
Keith Goatman
Keith Goatman il 22 Nov 2022
Found it! The check for unlicensed use of toolbox files is erroneously finding nrrdread, a function I had downloaded from https://uk.mathworks.com/matlabcentral/fileexchange/34653-nrrd-format-file-reader. I moved this elsewhere and everything works, except nrrdread of course.
This test for unlicensed seems like a very blunt instrument - it has needlessly wasted a lot of time.
Jan
Jan il 22 Nov 2022
How strange, that the code of this FileExchange submission is even copyrighted by MathWorks.
% Copyright 2012 The MathWorks, Inc.

Accedi per commentare.

Risposte (3)

Jan
Jan il 14 Nov 2022
This seems to be an effect of Matlab's method to check, if you have a license for the used functions. This prevents the user from copying a toolbox folder to another Matlab installation. This method is not documented, but you find several concerning questions in this forum: if a function in a folder equals the name of a toolbox function, you do not have a license for, this message appears.
Renaming the concerned function is a solution. Unfortunately it is not trivial to find out, which function causes the conflict.
This function helps to identify name conflicts, but only for installed toolboxes:
  1 Commento
Keith Goatman
Keith Goatman il 22 Nov 2022
Thanks @Jan, the conflict finder is a really useful utility to have, even if it didn't help in this specific case (as you say I don't have the offending toolbox installed).
What surprised me in this case was not that a file with a name matching a non-installed toolbox file wouldn't run, but that having that file in a directory stopped everything else in that directory running, even though the offending file wasn't a dependancy for them. In a directory with 300+ files this made tracking the problem down much harder. It seems if a blacklisted filename is detected the entire directory seems to be blacklisted.
Whilst mathworks need to protect their product, this seems excessive and indiscriminant. My wasted time was clearly considered acceptable collateral damage for this policy. Needless to say, I'm considering other options in future.

Accedi per commentare.


Yazdan
Yazdan il 18 Gen 2023
Hi. try to rewrite the functions in .mlx format. the the problem is solved.

SPYRIDON KARKAVITSAS
SPYRIDON KARKAVITSAS il 19 Dic 2023
Okay, but finally what is the solution to this problem simply stated? I have the same issue since I made a format in my computer and reinstalled MATLAB2022b version

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by