how to change uiLamp color in parfeval function?

1 vue (au cours des 30 derniers jours)
Andreas Schwager
Andreas Schwager le 2 Juin 2021
Modifié(e) : Alvaro le 2 Déc 2022
functions do no accept structs as input parameters.
GUIs designed using App Designer memorises properties in structs like
I have a process running inside a
function that should change e.g. color of the lamp.
How to do this?

Réponses (1)

Alvaro le 2 Déc 2022
Modifié(e) : Alvaro le 2 Déc 2022
Using parfeval or parfor is allowed in the App Designer. However, a quick test I just ran does not allow for modifying app object properties such as lamp color in parallel which might be expected (note that app.myLamp.Color is referencing an object property, not a struct).
You can, however, store the value of a property and then pass that to the workers instead of trying to access it from within the workers.


En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by