How to write string delimiter in a string

조회 수: 7 (최근 30일)
Collet Bastien
Collet Bastien 2012년 10월 13일
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일
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

추가 답변 (0개)

카테고리

Help CenterFile 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