vardump.m Dump variables into a string

Version 1.0.0.0 (1,42 KB) von Ronald
Dump variables into one string (similar to var_dump from PHP)
282 Downloads
Aktualisiert 1. Mär 2013

Lizenz anzeigen

Dump variables into one string (similar to var_dump from PHP)

TXT = vardump(a,b,c,...) generates a string where each input argument is displayed in the format of 'varname = value'.

TXT = vardump('all') dumps the whole workspace into a string. Please be careful when dumping large matrices. The variable 'ans' is omitted in the ouput.

Examples:
a = 10;
b = 'text';
vardump(a,b)

vardump('all');

Zitieren als

Ronald (2024). vardump.m Dump variables into a string (https://www.mathworks.com/matlabcentral/fileexchange/40590-vardump-m-dump-variables-into-a-string), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2011b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0