adding text on an image in 2018a
이전 댓글 표시
Hello, Why text() is returning: "Index in position 1 exceeds array bounds (must not exceed 1)" when I do:
hold on;
imshow(img)
text(20, 40, 'Some text');
hold off;
This example from the documentation also doesn't work.
x = 0:pi/20:2*pi;
y = sin(x);
plot(x,y)
text(pi,0,'\leftarrow sin(\pi)')
I can live without this and have an alternative, but this would fit much nicer in my design. Many thanks
댓글 수: 3
Rik
2018년 4월 12일
The example does result in the expected output for my copy of R2018a. What is the result of the line below?
which text -all
Walter Roberson
2018년 4월 12일
It is likely that you have a variable named text
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!