sqrt in figure label

548 ビュー (過去 30 日間)
Baba 2011 年 11 月 17 日
how would i place a square root sign inside a figure axis label? someting like square root of X

回答 (1 件)

Amith Kamath
Amith Kamath 2011 年 11 月 17 日
you would have to change the interpreter to latex, and then type in {\surd} in the xlabel (or any text) box. All the symbols are latex compatible, which is great, and you can make plots like this:
  2 件のコメント
Amith Kamath
Amith Kamath 2011 年 11 月 18 日
oops! I did a Rick Perry there! :) The latex symbol for square root is \surd and not \sqrt. This should definitely work. Sorry for the slip-up! Try this:
title('{\itAe}^{-\alpha\itt}sin\beta{\itt} {\surd} \alpha<<\beta')
xlabel('Time \musec.')


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by