Command window text

Copies all text in the command window into a cell array of strings.
677 téléchargements
Mise à jour 19 mai 2011

Afficher la licence

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.

Citation pour cette source

Hugh Nolan (2024). Command window text (https://www.mathworks.com/matlabcentral/fileexchange/31438-command-window-text), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0.0

Removed dependency on findjobj.m - thanks Jan

1.0.0.0