# Double Prime

83 views (last 30 days)
Reza on 10 Jun 2011
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 CommentsShowHide 1 older comment
Walter Roberson on 10 Jun 2011
See http://www.mathworks.com/support/bugreports/249537
which just happened to get mentioned in a different Question this morning.

Matt Tearle on 10 Jun 2011
If it's just a matter of spacing, you could always remove some space between the primes:
xlabel('$G^{\prime\!\prime}$','Interpreter','latex')
##### 1 CommentShowHide None
Reza on 11 Jun 2011
Perfect, thank you!

Ivan van der Kroon on 10 Jun 2011
xlabel('test''''')
gives you an xlabel as test'' You need double primes in strings for a single prime.

Arnaud Miege on 10 Jun 2011
It looks OK to me:
Arnaud
##### 2 CommentsShowHide 1 older comment
Reza on 11 Jun 2011
Wrong, Quotation is different than double prime (or segond), at least in the mac.