Effacer les filtres
Effacer les filtres

Button information from mask

4 vues (au cours des 30 derniers jours)
Hao Wu
Hao Wu le 21 Août 2016
Modifié(e) : Qu Cao le 23 Août 2016
Hello everybody,
I want to figure out which function is called from the mask, but when I use the get_param('blockname','Maskparameter') or MaskCallback, I can't find this button. Can anyone help?
for example in this controlling system 'narmamaglev' there is a neural controller with a mask, on the mask, there are several buttons,like 'generate training data',or 'train',how can I get the information from these buttons, and the callback function of them?
Thanks in advance Hao

Réponses (1)

Qu Cao
Qu Cao le 23 Août 2016
Modifié(e) : Qu Cao le 23 Août 2016
Hi Hao,
The GUI you see when double clicking the neural controller mask is created using the MATLAB function 'nnident' located in a similar path as:
C:\Program Files\MATLAB\R2016a\toolbox\nnet\nncontrol\private
The function is set as a callback function for the mask. You can confirm this by right click the mask, select 'Callbacks' tab, and in the 'Callback functions lists:' select 'OpenFcn'.
Thanks,
Qu

Catégories

En savoir plus sur Create Block Masks 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