f



How to get the square root sign inside a xlabel?

Hello
A am having difficulties putting the square root sign inside
a xlabel, the greek symbols a working though. What am i
doing wrong? I sure it can be done!?

figure
plot(xData,yData,'*'),
ylabel('\Delta\theta','HorizontalAlignment','center','FontSize',13),
xlabel(' \square{f}','FontSize',13)


The \Delta\theta sign works great (however it would be nice
to have horisontal text), but i cannot figure out how to get
square sign inside the figure, Matlab just replies: Warning:
Unable to
interpret TeX string
"\square{f}"

Any help would be greatly appreciated. 
0
3/9/2008 10:45:10 PM
comp.soft-sys.matlab 210195 articles. 11 followers. lunamoonmoon (258) is leader. Post Follow

2 Replies
383 Views

Similar Articles

[PageSpeed] 47

"Lars Olav Vestland" <larsve.nospam@mathworks.com> wrote in 
message <fr1p9m$ekn$1@fred.mathworks.com>...
> Hello
> A am having difficulties putting the square root sign 
inside
> a xlabel, the greek symbols a working though. What am i
> doing wrong? I sure it can be done!?
> 
> figure
> plot(xData,yData,'*'),
> ylabel
('\Delta\theta','HorizontalAlignment','center','FontSize',13
),
> xlabel(' \square{f}','FontSize',13)
> 
> 
> The \Delta\theta sign works great (however it would be 
nice
> to have horisontal text), but i cannot figure out how to 
get
> square sign inside the figure, Matlab just replies: 
Warning:
> Unable to
> interpret TeX string
> "\square{f}"
> 
> Any help would be greatly appreciated. 

Try this

xlabel('$$\sqrt{f}$$','Interpreter','latex','FontSize',13)

hth

Yi

0
y.cao (356)
3/9/2008 10:58:03 PM
> 
> Try this
> 
> xlabel('$$\sqrt{f}$$','Interpreter','latex','FontSize',13)
> 
> hth
> 
> Yi
> 
Oh, sweet its works perfect.

Thanks a bunch Yi!
0
3/9/2008 11:08:02 PM
Reply: