why i am getting "Ambiguous property found while using line" error?
조회 수: 4 (최근 30일)
이전 댓글 표시
i am trying to draw a line from the accelerometer data.. code is as shown below
[gx,gy,gz] = readAcc(accelerometer);
disp(gx);
line([0 gx],[0 0],'Color','r','LineWidth',2,'Marker','o');
but i am getting error as
Error using line
Ambiguous property found.
Object Name : line
Property Name : ''.
Error in vector (line 45)
line([0 gx],[0 0],'Color','r','LineWidth',2,'Marker','o');
what might be the cause and how to resolve this problem? it does not display any property name..
댓글 수: 0
채택된 답변
Walter Roberson
2016년 1월 29일
Try the full
line('XData', [0 gx], 'YData', [0 0],'Color','r','LineWidth',2,'Marker','o');
댓글 수: 7
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!