How to write string delimiter in a string

Hello The question is very simple, but I can't find the answer on the web. I would like to write a string with ' as content : A = ''';
How can I do that ? (I've already tried with \, /, ...).

댓글 수: 2

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 13일
'string'
Collet Bastien
Collet Bastien 2012년 10월 13일
편집: Collet Bastien 2012년 10월 13일
yes, but here string = '
I'm trying to do : A = ' ' ' ;

댓글을 달려면 로그인하십시오.

 채택된 답변

Matt Fig
Matt Fig 2012년 10월 13일
편집: Matt Fig 2012년 10월 13일

0 개 추천

A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by