Propblems with plots after installing Matlab 2024a

After installing Matlab 2024a I have encountered following problem
I create any plot command, e.g.:
>> t = -3:0.1:3;
>> y = t.^2;
>> figure, plot(t,y)
After moving the mouse pointer over the axes in the figure, I recieve th following massage:
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for class matlab.ui.Figure:
Undefined function 'timer' for input arguments of type 'char'.
Error in matlab.graphics.interaction.actions.Linger/startTimer
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for class matlab.ui.Figure:
Undefined function 'timer' for input arguments of type 'char'.
Error in matlab.graphics.interaction.actions.Linger/startTimer
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Warning: Error occurred while executing the listener callback for event ButtonExited defined for class
matlab.graphics.primitive.canvas.JavaCanvas:
Undefined function 'timer' for input arguments of type 'char'.
Error in matlab.graphics.controls.ToolbarController/createTooltipTimer
Error in matlab.graphics.controls.ToolbarController/get.ToolTipTimer
Error in matlab.graphics.controls.ToolbarController/doButtonUnhover
Error in matlab.graphics.controls.ToolbarController/handleMouseExited
Error in matlab.graphics.controls.DesktopToolbarController/handleMouseExited
Error in matlab.graphics.controls.ToolbarController>@(e,d)obj.handleMouseExited(e,d)
Similar problem appears when i try e.g. copy the figure into the clipboard:
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for class matlab.ui.Figure:
Undefined function 'timer' for input arguments of type 'char'.
Error in matlab.graphics.interaction.actions.Linger/startTimer
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Error in print (line 36)
drawnow; % give changes a chance to be processed
Error in matlab.graphics.internal.copyFigureHelper>doJavaFigureCopy (line 173)
print(argsToPrint{:});
Error in matlab.graphics.internal.copyFigureHelper (line 16)
doJavaFigureCopy(hFigure);
Error in editmenufcn (line 68)
matlab.graphics.internal.copyFigureHelper(hfig)
> In print (line 36)
In matlab.graphics.internal.copyFigureHelper>doJavaFigureCopy (line 173)
In matlab.graphics.internal.copyFigureHelper (line 16)
In editmenufcn (line 68)
Warning: Error occurred while executing the listener callback for event ButtonExited defined for class
matlab.graphics.primitive.canvas.JavaCanvas:
Undefined function 'timer' for input arguments of type 'char'.
Error in matlab.graphics.controls.ToolbarController/createTooltipTimer
Error in matlab.graphics.controls.ToolbarController/get.ToolTipTimer
Error in matlab.graphics.controls.ToolbarController/doButtonUnhover
Error in matlab.graphics.controls.ToolbarController/handleMouseExited
Error in matlab.graphics.controls.DesktopToolbarController/handleMouseExited
Error in matlab.graphics.controls.ToolbarController>@(e,d)obj.handleMouseExited(e,d)
Error in alternatePrintPath
Error in print (line 90)
pj = alternatePrintPath(pj);
Error in matlab.graphics.internal.copyFigureHelper>doJavaFigureCopy (line 173)
print(argsToPrint{:});
Error in matlab.graphics.internal.copyFigureHelper (line 16)
doJavaFigureCopy(hFigure);
Error in editmenufcn (line 68)
matlab.graphics.internal.copyFigureHelper(hfig)
> In alternatePrintPath
In print (line 90)
In matlab.graphics.internal.copyFigureHelper>doJavaFigureCopy (line 173)
In matlab.graphics.internal.copyFigureHelper (line 16)
In editmenufcn (line 68)
Can you tell me what is wrong?
I use Windows 10 Enterprise LTSC, 64-bit, version 1809, build 17763.5696
Thank you for the answer, with best regards,
Roman Vitek.

4 comentarios

You probably need to reinstall MATLAB.
Thank you very much for your advice. I tried to reinstall Matlab, but without any positive effect. I am still obtaining many error messages, obviously connected with the motion of the mouse pointer over the axes area.
I think that this problem is probably caused by the version of Windows. According to the release notes of the Matlab R2024a the minimum version of Windows 10 is 21H2. My version is 1903. I will have to reinstall the Windows very likely.
At any rate thank you for your help. Regards, Roman.
Antoni
Antoni el 22 de Abr. de 2024
Hi,
I had the same problem than Roman, but in a Mac, and after deleting Matlab and reinstalling it, this error desapears. Thanks Walter
Toni
Alejandro
Alejandro el 5 de Mayo de 2024
Hi,
Even with what was pointed out by @Roman Vitek, my windows version is 22H2 and that probelm still appears. I will tryn and reinstall matlab as per suggested. Thank you all.
Alex.

Iniciar sesión para comentar.

 Respuesta aceptada

Roman Vitek
Roman Vitek el 23 de Abr. de 2024
Editada: Roman Vitek el 23 de Abr. de 2024
Hello,
problem is solved. I have reinstalled Windows 10 to version 22H2 and everything seems to be alright.
Thanks all for help, best regards,
Roman.

Más respuestas (1)

geofo
geofo el 30 de Jun. de 2024
I get the same error in Ubuntu with the latest 2024 update.

4 comentarios

geofo
geofo el 30 de Jun. de 2024
Problem solved for me: I executed the following commands at the Matlab prompt, which solved the problem:
> restoredefaultpath
> rehash toolboxcache
> savepath
Eva
Eva el 5 de Ag. de 2024
Works perfect, thanks!
Zhao Lu
Zhao Lu el 22 de Sept. de 2024
Amazing solution, thanks so much.
Thank you so much!!!

Iniciar sesión para comentar.

Categorías

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

Productos

Versión

R2024a

Etiquetas

Preguntada:

el 21 de Abr. de 2024

Comentada:

el 23 de Oct. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by