Modify colobar values into a Function: error "Attempt to extract field 'YTick' from 'mxArray'"
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alberto Mora
le 5 Juin 2020
Réponse apportée : Alberto Mora
le 5 Juin 2020
Hi,
into a Matlab Function in Simulink environment I want to modify the value shown by a colorbar (adding min and max values at the two ends of the colorbar).
Therefore in the Function there is the following code:
cbar=colorbar;
colorbar('Ticks',[ MyMinVal, cbar.Ticks, MyMaxVal ],'TickLabels',[ MyMinVal, cbar.Ticks, MyMaxVal ]);
The above command works if I execute it from command window, but during the simulink simulation does not work, and I get the following error:
Attempt to extract field 'YTick' from 'mxArray'.
Probably there is something related to the "coder.extrinsic" to set at the beginning of the routine but I don't know exactly what.
Thanks and best regards, A
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels 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!