I would like to ask something about Matlab. I could not find this on this forum. I would like to create a new text box right at the top of a legend box in a plot. I am trying to do this with a function called annotation, but I am not doing it right because sometimes the new box is over the legend box. Is there any way to do this in order to keep my plot with a good look?
I am using this code: annotation('textbox',[0.7 0.192 0.1 0.1],'String',{'OOI =',num2str(OOI)}); I've playing on those numbers, but I could not find the right ones yet to do what I want.
I have another question. For some plots, my axes don't start at the point (0,0). It is starting at (0,-something). I would like to know if there is a way to make it start at (0,0). I tried
set(gca,'XTick', [0:20:300]); set(gca,'YTick',[0:0.1:1]);
but it is not working. Could you guys, please, help me? Any help I would be really glad.