Double Prime

I am trying to type double prime for a x label and I cannot make it work. Instead of double prime I get two prime with extra distance.
xlabel('$G^{\prime\prime}$','Interpreter','latex')
I also used other potential symbols like \second and \dprime but did not work. Direct type of it (˝) or $$G''$$ did not work either. I am using a mac and latexit or other tex software produced what I meant correctly!
Furthermore, commands like xlabel('G'' ') also end up to the wrong thing and omit one of the primes!

댓글 수: 2

Walter Roberson
Walter Roberson 2011년 6월 10일
Wait -- Mac? Which OS-X version? and which MATLAB version?
Somewhere around R2010 there were (if I recall) problems with using LaTex on OS-X .
Walter Roberson
Walter Roberson 2011년 6월 10일
See http://www.mathworks.com/support/bugreports/249537
which just happened to get mentioned in a different Question this morning.

댓글을 달려면 로그인하십시오.

답변 (3개)

Matt Tearle
Matt Tearle 2011년 6월 10일

1 개 추천

If it's just a matter of spacing, you could always remove some space between the primes:
xlabel('$G^{\prime\!\prime}$','Interpreter','latex')
Ivan van der Kroon
Ivan van der Kroon 2011년 6월 10일

0 개 추천

xlabel('test''''')
gives you an xlabel as test'' You need double primes in strings for a single prime.
Arnaud Miege
Arnaud Miege 2011년 6월 10일

0 개 추천

It looks OK to me:
Arnaud

댓글 수: 2

Arnaud Miege
Arnaud Miege 2011년 6월 10일
I should maybe have said that I am using R2011a on Windows 7 64-bit.
Reza
Reza 2011년 6월 11일
Wrong, Quotation is different than double prime (or segond), at least in the mac.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2011년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by