필터 지우기
필터 지우기

Invalid first data argument

조회 수: 4 (최근 30일)
Kiran Sagar
Kiran Sagar 2016년 4월 7일
댓글: Image Analyst 2016년 4월 8일
The following code:
plot(x,y,'Marker','*','Color','r',x2,y2,'Marker','--','Color','b')
generates this error: "Invalid first data argument".
here x, y and x2, y2 are arrays of same size.
  댓글 수: 2
Kiran Sagar
Kiran Sagar 2016년 4월 7일
x = [1 2 3] ;
y = 2*x ;
x2 = x ;
y2 = x ;
Image Analyst
Image Analyst 2016년 4월 8일
Doesn't matter now. I told you how to fix it below.

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

채택된 답변

Image Analyst
Image Analyst 2016년 4월 7일
편집: Image Analyst 2016년 4월 7일
'--' is not a valid choice for 'Marker'. Use a valid marker. See the help for a list of them.
Try this:
plot(x,y,'r*-', x2,y2,'bd-');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by