Problemas con uso de app.UIAxes en APP DESIGNER

5 次查看(过去 30 天)
Realice un proyecto en App Designer de Matlab, funciono sin problemas, un par de dias despues volvi a abrir el proyecto y ahora ninguna grafica trabaja con normalidad, no me indica ningun codigo de error, cuando ejecuto la app diseñada se ejecuta con normalidad pero las graficas que agrego no se visualizan, intente eliminarlas del diseño pero tampoco me permite hacerlo, intente crear un nuevo proyecto, pero al agregar una grafica tampoco me permite eliminarla, la opcion de eliminar me aparece inactiva y tampoco puedo cambiarla de posición usando el mouse, los demas elementos como lo son botones, cuadros de texto funcionan con normalidad.
En la imagen de arriba muestro mi problema actual, la imagen de abajo es como se visualizaba antes el diseño realizado.La imagen de arriba es mi problema actual, la parte de abajo es como debería de funcionar.

采纳的回答

Namnendra
Namnendra 2024-4-8
Hi NOE,
La siguiente respuesta está en inglés.
It sounds like you're encountering a rather unusual issue with MATLAB App Designer, where graphics components are not functioning as expected, and you're unable to delete or modify them. This could be due to a variety of reasons including software bugs, issues with your specific MATLAB installation, or even problems with your project files. Here are several steps you can take to troubleshoot and potentially resolve the issue:
1. Check for Updates
Ensure that your MATLAB installation is up to date. Sometimes, bugs are fixed in newer releases or patches.
2. Restart MATLAB
If you haven't already, try restarting MATLAB. It's a simple step, but often, restarting can resolve unexpected behavior.
3. Clear MATLAB's Path
Sometimes, conflicts with MATLAB's path can cause issues. Try clearing the path and then adding back only the necessary folders.
- Clear Path: Use the command `restoredefaultpath;` to reset the MATLAB path to its default state. Then, use `addpath` to add your project directory or any other required directories back to the path.
4. Run MATLAB in Safe Mode
Running MATLAB in safe mode can help bypass issues related to custom settings or startup files.
- Safe Mode: Start MATLAB with the `-nojvm`, `-nodesktop`, or `-nosplash` options to run it in a minimalistic mode. Check MATLAB documentation for how to do this on your operating system.
5. Check for Graphics Drivers Issues
Sometimes, graphics issues can be related to your computer's graphics drivers. Ensure your graphics drivers are up to date.
6. MATLAB Preferences Reset
Corrupted MATLAB preferences can cause unpredictable behavior. Try resetting MATLAB's preferences.
- Reset Preferences: Rename or delete the MATLAB preferences directory. This directory can typically be found at:
- Windows: `C:\Users\[YourUsername]\AppData\Roaming\MathWorks\MATLAB\[Version]`
- Mac: `~/Library/Application Support/MathWorks/MATLAB/[Version]`
- Linux: `~/.matlab/[Version]`
After renaming or deleting this directory, restart MATLAB. Note that this will reset MATLAB to its default settings.
7. Inspect the App Designer Code
Sometimes, the issue might be with the code generated by App Designer. Although you mentioned there are no error codes, it might be worth manually inspecting the code for any anomalies or issues, especially in the startup function or where components are initialized.
8. Reinstall MATLAB
As a last resort, if nothing else works, consider reinstalling MATLAB. There might be a corrupted installation file or a deeper issue with your current installation.
Remember to back up your work and any custom configurations before taking drastic measures like reinstalling MATLAB or resetting preferences.
I hope the above steps help resolve the issue.
Thank you.

更多回答(1 个)

NOE
NOE 2024-4-13
Thank you for the options, unfortunately the only solution to my problem was to reinstall Matlab.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by