Real time movements during drawing

3 visualizaciones (últimos 30 días)
Marco Antonio Grivet Mattoso Maia
Marco Antonio Grivet Mattoso Maia el 18 de Jul. de 2022
Respondida: Shubham el 29 de Dic. de 2023
I wrote an App using Matlab2021a that graphically illustrates real time linear combination of vectors by means of sliders working as the linear combination factors. It worked fine. When I upgrade my Matlab to 2022a, the real time effect was gone. The drawing appears only when I stop moving de sliders. Does anyone know what possibly is going wrong?
  2 comentarios
Jonas
Jonas el 19 de Jul. de 2022
can you show us the code? how did you implement the "real time" callback? normally i would create a listener using addlistener() with the 'PreSet' option
Marco Antonio Grivet Mattoso Maia
Marco Antonio Grivet Mattoso Maia el 19 de Jul. de 2022
I simply use the callbacks "ValueChangingFcn" to get the "real-time" visualization. That works well under Matlab2021a but not under Matlab2022a.
You can find the full code at https://drive.google.com/drive/folders/19gLw0XuL3iA-qQB01K2gVXYxiDXw-0Ok?usp=sharing

Iniciar sesión para comentar.

Respuestas (1)

Shubham
Shubham el 29 de Dic. de 2023
Hey Marco,
I understand that you wrote an App in MATLAB r2021a using “uislider”. You used “ValueChangingFcn” callback to get the real-time visualization of your app. The effect was no longer present after updating MATLAB to r2022a. I tried to open the link present in the comments, but the code file is not accessible.
Please check if the “uislider” has only the “ValueChangingFcn” as the callback. You can search for the callbacks you have added. Refer to the following:
There is an example present in the documentation using “ValueChangingFcn” callback for the release r2022a which works fine. I have tested the example at my end. You can have a look at the documentation for the same here:
You can test out the example to check the callback using the following command:
openExample('matlab/SimpleAppWithCallbackExample')
To get a better idea, please share the code files used for the app.
Hope this helps!

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by