在字符串中添加撇号-Matlab [英] Adding Apostrophe in a string - Matlab

查看:363
本文介绍了在字符串中添加撇号-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.

推荐答案

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

(即,您将使用双撇号.)

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

这篇关于在字符串中添加撇号-Matlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆