Why do I get an invalid interpreter on my annotation request?

3 vues (au cours des 30 derniers jours)
Kenneth Lamury
Kenneth Lamury le 1 Juil 2016
TBox10=annotation('textbox',[.13,.39,.17,.085],'String', ...
{'\alpha\Beta\Gamma\delta\epsilon\zeta\eta\theta\iota\kappa', ...
'\Lambda\mu\nu\xi\pi\rho\sigma\tau\upsilon\phi\chi\psi\Omega'}, ...
'BackgroundColor',[.5,.5,1])
TBox10 =
TextBox (\alpha\Beta\Gamma\delta\epsilon\zeta\eta\theta\iota\kappa) with properties:
String: {2x1 cell}
FontName: 'Helvetica'
FontSize: 10
FontWeight: 'normal'
Color: [0 0 0]
BackgroundColor: [0.5000 0.5000 1]
EdgeColor: [0 0 0]
LineStyle: '-'
LineWidth: 0.5000
Position: [0.1300 0.3900 0.1700 0.0850]
Units: 'normalized'
Show all properties
Warning: Error updating TextBox.
String must have valid interpreter syntax:
\alpha\Beta\Gamma\delta\epsilon\zeta\eta\theta\iota\kappa
\Lambda\mu\nu\xi\pi\rho\sigma\tau\upsilon\phi\chi\psi\Omega

Réponse acceptée

Walter Roberson
Walter Roberson le 1 Juil 2016
There is no \Beta just B and \beta
  2 commentaires
Kenneth Lamury
Kenneth Lamury le 2 Juil 2016
Using student version R2016a required me to use ALL lower case letters when using Greek letters. Thus, I assume there are no capital Greek letter, n'est pas?
dpb
dpb le 2 Juil 2016
Modifié(e) : Walter Roberson le 2 Juil 2016
AFAIK there's no difference in content of Student version, the only one of your string I had to lower-case was Beta; rest were fine and according to the doc <Interpreter> there are a half-dozen or so included, just Beta isn't one that is...

Connectez-vous pour commenter.

Plus de réponses (1)

dpb
dpb le 1 Juil 2016
'Beta' isn't available; 'beta' is. That seems to fix it here...

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by