Prev: add zero cells to matrix
Next: command line input
From: roya olyazadeh on 19 May 2010 09:40 I am trying to use 'text' to write something in my plot but after running nothing appears Can any one knows what is the problem ? text(1000,1000,'string') .... or text(5*pi/4,sin(5*pi/4),... ['sin(5*pi/4) = ',num2str(sin(5*pi/4))],... 'HorizontalAlignment','center',... 'BackgroundColor',[.7 .9 .7],... 'Margin',10);
From: mat001 on 19 May 2010 09:56 "roya olyazadeh" <roya2543(a)gmail.com> wrote in message <ht0po6$2lh$1(a)fred.mathworks.com>... > I am trying to use 'text' to write something in my plot > but after running nothing appears > Can any one knows what is the problem ? > > > text(1000,1000,'string') .... > or > > text(5*pi/4,sin(5*pi/4),... > ['sin(5*pi/4) = ',num2str(sin(5*pi/4))],... > 'HorizontalAlignment','center',... > 'BackgroundColor',[.7 .9 .7],... > 'Margin',10); try this plot(0:pi/20:2*pi,sin(0:pi/20:2*pi)) text(pi,0,' \leftarrow sin(\pi)','FontSize',18)
|
Pages: 1 Prev: add zero cells to matrix Next: command line input |