Command window text

版本 1.1.0.0 (1.7 KB) 作者: Hugh Nolan
Copies all text in the command window into a cell array of strings.
679.0 次下载
更新时间 2011/5/19

查看许可证

This m-file allows you to export all text in the Command Window to a cell array of strings, each entry being a line of text from the window. The unparsed raw string is also available, if desired.

Operation is very simple - this file looks for the appropriate java object in the root window and gets text from it.

I was looking for a way to do this, particularly for error tracking in some software I maintain, and nobody seemed to have written up this method, so I present it here for you to use.

引用格式

Hugh Nolan (2026). Command window text (https://ww2.mathworks.cn/matlabcentral/fileexchange/31438-command-window-text), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息
版本 已发布 发行说明
1.1.0.0

Removed dependency on findjobj.m - thanks Jan

1.0.0.0