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.
다운로드 수: 676
업데이트 날짜: 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 (2024). Command window text (https://www.mathworks.com/matlabcentral/fileexchange/31438-command-window-text), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Removed dependency on findjobj.m - thanks Jan

1.0.0.0