when I ran a MATLAB app I created I get Warning: Marker input is ignored in command prompt. What this means

24 vues (au cours des 30 derniers jours)
Marker input is ignored
  4 commentaires
Walter Roberson
Walter Roberson le 24 Juin 2021
If you then execute
[msg,warnID] = lastwarn
then what shows up for warnID ?
Nitin Phadkule
Nitin Phadkule le 24 Juin 2021
>> [msg,warnID] = lastwarn
msg =
'Marker input is ignored.'
warnID =
'MATLAB:graphics:constantline:IgnoredMarker'

Connectez-vous pour commenter.

Réponse acceptée

Nitin Phadkule
Nitin Phadkule le 25 Juin 2021
Thanks for the reply, i got the reson of error but i want markers to be shown below. Please suggest how to supress warning.
  4 commentaires
Walter Roberson
Walter Roberson le 28 Juin 2021
yline(app.UIAxes_2,0, 'k_', 'LineWidth', 2);
Underscore is a marker style that indicates a horizontal line. You want
yline(app.UIAxes_2,0, 'k-', 'LineWidth', 2);

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 25 Juin 2021
Something in your code invokes either xline() or yline(), and specifies a marker in doing so. For example,
xline(4, 'r*')
However, xline() and yline() do not permit markers.

Catégories

En savoir plus sur App Building dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by