Adding Apostrophe in a string - Matlab

Tessa Danger Bamkin picture Tessa Danger Bamkin · Feb 20, 2013 · Viewed 59.5k times · Source

I want to put an apostrophe in a string to denote the possessive but it ends the string, how can I put one in.

Answer

H.Muster picture H.Muster · Feb 20, 2013
yourString = 'This is the answer to Tessa''s question.';

(I.e., you would use an double apostrophe.)