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

22 views (last 30 days)
Marker input is ignored
  4 Comments
Nitin Phadkule
Nitin Phadkule on 24 Jun 2021
>> [msg,warnID] = lastwarn
msg =
'Marker input is ignored.'
warnID =
'MATLAB:graphics:constantline:IgnoredMarker'

Sign in to comment.

Accepted Answer

Nitin Phadkule
Nitin Phadkule on 25 Jun 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 Comments
Walter Roberson
Walter Roberson on 28 Jun 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);

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 25 Jun 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.

Categories

Find more on App Building in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!