Possible matlab bug with text() function?
I’m having issues with the text function. I am copying your example from the documentation, and I get the following error:
"Subscript indices must either be real positive integers or logicals."
Here is the example:
x = 0:pi/20:2*pi;
y = sin(x);
plot(x,y)
text(pi,0,’leftarrow sin(pi)’)
I am using Matlab 2013a. Very simple example, not sure why I can’t replicate the documentation example. Thank in advance!I’m having issues with the text function. I am copying your example from the documentation, and I get the following error:
"Subscript indices must either be real positive integers or logicals."
Here is the example:
x = 0:pi/20:2*pi;
y = sin(x);
plot(x,y)
text(pi,0,’leftarrow sin(pi)’)
I am using Matlab 2013a. Very simple example, not sure why I can’t replicate the documentation example. Thank in advance! I’m having issues with the text function. I am copying your example from the documentation, and I get the following error:
"Subscript indices must either be real positive integers or logicals."
Here is the example:
x = 0:pi/20:2*pi;
y = sin(x);
plot(x,y)
text(pi,0,’leftarrow sin(pi)’)
I am using Matlab 2013a. Very simple example, not sure why I can’t replicate the documentation example. Thank in advance! text, not a bug MATLAB Answers — New Questions