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

Marker input is ignored

댓글 수: 4

Please share the full error message (all the red text).
If you then execute
[msg,warnID] = lastwarn
then what shows up for warnID ?
>> [msg,warnID] = lastwarn
msg =
'Marker input is ignored.'
warnID =
'MATLAB:graphics:constantline:IgnoredMarker'

댓글을 달려면 로그인하십시오.

 채택된 답변

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

I do not see any markers. I see line style '--'
ohhh yes it is line style, here is my code. please suggest the solution
This is my related code
plot(app.UIAxes_2,theta,v1, ...
theta,v2);
legend(app.UIAxes_2,{'V','I'},'Location','northeast','AutoUpdate',"off")
xlim(app.UIAxes_2,"tight");
yline(app.UIAxes_2,0, 'k_', 'LineWidth', 2);
xline(app.UIAxes_2,c,'b--', 'LineWidth', 2);
xline(app.UIAxes_2,90, 'k--', 'LineWidth', 2);
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);
Thanks after removal of yline warning disappeared.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

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.

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 6월 23일

댓글:

2021년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by