Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Apostrophe in a string - Matlab

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

like image 361
Tessa Danger Bamkin Avatar asked Feb 20 '13 16:02

Tessa Danger Bamkin


2 Answers

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

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

like image 117
H.Muster Avatar answered Sep 27 '22 23:09

H.Muster


add one more ' after ' apostrophe after apostrophe

like image 38
Abhishek Thakur Avatar answered Sep 27 '22 22:09

Abhishek Thakur