Adding Apostrophe in a string - Matlab

2019-01-26 04:57发布

问题:

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

回答1:

yourString = 'This is the answer to Tessa''s question.';

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



回答2:

add one more ' after ' apostrophe after apostrophe