From matlab Cell to .rtf
이전 댓글 표시
Hello ! I want to export my matlab Cell to .rtf fotmat.
The text is already configured. When I copy and save in .rtf format in another text editor (for example WordPad), the text is perfetct. Otherwise, when i try to save using this function:
filename2 = strcat(cd,'\Results.rtf'); %filename used for .rtf
dlmwrite(filename2, 1); %creates .txt
xlswrite(filename2, Resultas); %creates .txt
what happens is that the Matlab adds " in the beggining and " in the end of my text! That messes the text formatation and so the format codes doesn't work.
What i need is to save the text without this ".
Somebody can help me? Thank you !
댓글 수: 2
Jan
2012년 11월 27일
The question is not clear. What does "the text is configured" mean? Neither DLMWRITE nor XLSWRITE are designed to create RTF files. As far as I know, Matlab does not support this format at all. Where do you observe, that double quotes are added to the text? In the command window or in the file.
Please explain the size and type of the input and the wanted output. Both are currently not clear.
Ajit Kale
2013년 2월 27일
Rodolfo, I understand that you have atext configured for RTF format, with RTF tags and all. correct? please confirm. So if I am correct, as far as it gets written to a file with RTF extension it should be readable in wordpad etc. I tried with above assumptions but could not repeat the same issue. did you try writing a not RTF configured data to the file?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!