unrecognized method, property, or field "cla" for class "matlab.ui.control.UIAxes".
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I got this error in the matlab when running a program. It causes problems in the running the program itself later. Can I know what it means by "unrecognized method, property, or field 'cla' for class 'matlab.ui.control.UIAxes' " ? How can I fix it ?
Thanks a lot!
--Eden
1 comentario
Mohit
el 5 de Mzo. de 2025
Not sure if this is a graceful solution. We have a MATLAB code, with the GUI made using App Designer that gave the same error
Unrecognized method, property, or field 'cla' for class 'matlab.ui.control.UIAxes'.in R2020b. Suspect there is a difference in how R2020a vs. R202b clears current axes. Re-opening the same MATLAB code, without any changes, in R2020a solved the issue for us
Respuestas (1)
Yash Srivastava
el 4 de Abr. de 2022
Hi Eden,
I am assuming that you are using “cla” as a method or property of UIAxes.
The intended use of “cla” is as a function.
cla(axes)
You can refer to the documentation below
3 comentarios
Image Analyst
el 11 de Jul. de 2022
Maybe he tried to do something like
axesHandle.cla % cla is not a method or property of the axes handle.
instead of
cla(axesHandle);
Ver también
Categorías
Más información sobre Image Preview and Device Configuration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!