MATLAB - String preview truncated at 128 characters

조회 수: 6 (최근 30일)
Pedro
Pedro 2014년 9월 23일
댓글: Pedro 2014년 9월 23일
I'm trying to copy some MATLAB cell's content (words) but the content of each cell exceeds 128 characters and the message "<Preview truncated at 128 characters>" appears at the end of each cell.
When I copy each cell separately all the content is copied without the truncation message, but when I copy them all together the problem persists. Copying each cell individually is not an options, since I have to copy millions of cells.
Is there any away of preventing MATLAB from doing this truncation?
Thank you

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 9월 23일
편집: Sean de Wolski 2014년 9월 23일
How are you copying it?
I would recommend using a function to automate writing it. Probably fopen/fprintf/fclose, or one of many from the file exchange
If you just want the text displayed, you can use celldisp
celldisp({repmat('Q',1,400)})
  댓글 수: 1
Pedro
Pedro 2014년 9월 23일
I had to use a xlswrite to copy it to Excel but it worked, thanks ;)

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by