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

5 ビュー (過去 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 Center および File ExchangeDownloads についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by