From matlab Cell to .rtf
Show older comments
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 Comments
Jan
on 27 Nov 2012
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
on 27 Feb 2013
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?
Answers (0)
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!