I want to put a text on a plot using the following code:
x_pos=0.0031;y_pos=0.0507str_=['R^2 (%) = ' num2str(R_squared)];text(x_pos,y_pos , str_)
it used to work but now it refuses to work and gave me the following error:
??? Error using ==> textNot enough input arguments.
However, if I use the following code, it will work:
text(0.0031, 0.0507 , str_)
I don't know what the problem is. Could you please help me about that?