Easily Printing (on paper) text files
5 次查看(过去 30 天)
显示 更早的评论
I am currently working on GUI in guide that parses data from a text file and plots it. I have been able to print the resulting figure however I would also like the program to print the raw text files along with the graph. Matlab is able to print out text files from the editor with the option to include a header/highlight code etc. but I can not find documentation on how to do this programmatically. Is there a way to open an invisible editor window and tell it to print, similar to how you print figures displayed in a gui?
% copies axes on gui to an invisible figure then prints to default printer
printfig = figure('Visible', 'off');
copyobj(handles_to_axes_in_gui, printfig)
print
0 个评论
回答(1 个)
Jan
2011-3-9
Perhaps this helps:
Then you have to create a HMTL file at first.
ADDED: Under Windows you can install the Generic/Text only printer driver. Under Linux lpr can print text directly also.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!