How to get a big string into the other line for visibility

조회 수: 1 (최근 30일)
Sandeep Nair
Sandeep Nair 2019년 1월 24일
편집: Stephen23 2019년 1월 24일
I have a big string which i would like to store it in a command but due to visibility issue i want to use ... command to come to next line.Could you please tell me how to do itt
For Example
My string is AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
I want to code something like
a='AAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
AAAAAAAA'
But this gives an error message
Please note i dont want to use
a= ['AAAAAAAAAAAAAAAAAAAAAAAAAAAAA'...
'AAAAAAAAAAAA']; this command it gives the correct ans but it hamper with \n command if am using with fprintf
  댓글 수: 1
Stephen23
Stephen23 2019년 1월 24일
편집: Stephen23 2019년 1월 24일
"...but it hamper with \n command if am using with fprintf "
What does that mean exactly? Please show an example of what you tried.

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

답변 (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