orthosliceViewer error in version 2024b

17 visualizaciones (últimos 30 días)
Albrecht Haase
Albrecht Haase el 20 de Sept. de 2025 a las 10:09
Respondida: Aditya el 24 de Sept. de 2025 a las 5:35
I get the error "Error using sub2ind Too many input arguments." within the orthosliceViewer function in MATLAB 2024b.
I tried all inputs, e.g. orthosliceViewer(rand(128,128,128)),
and also the example from the MATLAB Help Center: openExample('images/ViewMRIDataInOrthosliceViewerExample')
produces this error.
It works fine in Matlab 2023a and also in Matlab online. Must this be an error in the installation? Can I avoid updating to 2025?
  1 comentario
Torsten
Torsten el 20 de Sept. de 2025 a las 10:32
Editada: Torsten el 20 de Sept. de 2025 a las 10:43
What is the output if you type
which -all sub2ind
/MATLAB/toolbox/matlab/elmat/sub2ind.m /MATLAB/toolbox/matlab/bigdata/@tall/sub2ind.m % tall method /MATLAB/toolbox/parallel/array/distributed/@distributed/sub2ind.m % distributed method /MATLAB/toolbox/parallel/gpu/gpu/@gpuArray/sub2ind.m % gpuArray method

Iniciar sesión para comentar.

Respuestas (1)

Aditya
Aditya el 24 de Sept. de 2025 a las 5:35
Hi Albrecht,
This may be due to a function shadowing issue for a function used in the underlying implementations of these other functions. Try the following debugging steps in order:
1) Try to reset your MATLAB path:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
This step may resolve or reveal a shadowing issue. If you see a warning about name conflicts, please try to delete or rename the local function that has a name conflict.2) Try to regenerate your MATLAB preferences.
3) As a last resort, try a clean reinstallation of MATLAB.
Thanks and Regards,
Aditya Kaloji

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by