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

조회 수: 4 (최근 30일)
victor
victor 2022년 10월 10일
답변: SPYRIDON KARKAVITSAS 2023년 12월 19일
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
Keith Goatman
Keith Goatman 2022년 11월 22일
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 2022년 11월 22일
How strange, that the code of this FileExchange submission is even copyrighted by MathWorks.
% Copyright 2012 The MathWorks, Inc.

댓글을 달려면 로그인하십시오.

답변 (3개)

Jan
Jan 2022년 11월 14일
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
Keith Goatman
Keith Goatman 2022년 11월 22일
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.

댓글을 달려면 로그인하십시오.


Yazdan
Yazdan 2023년 1월 18일
Hi. try to rewrite the functions in .mlx format. the the problem is solved.

SPYRIDON KARKAVITSAS
SPYRIDON KARKAVITSAS 2023년 12월 19일
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

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by