dput

バージョン 1.1.0.0 (4.82 KB) 作成者: John Colby
Generates paste-able ASCII representations of MATLAB variables
ダウンロード: 260
更新 2011/12/5

ライセンスの表示

This function emulates the R version of dput(). It writes ASCII representations of variables that can be easily pasted back into MATLAB and evaluated to recreate the variables. This is especially useful for quickly posting short reproducible examples on sites like Stack Overflow, without having to upload any separate data files as attachments, and while overcoming the shortcomings of the "save -ascii" approach.

One particularly useful highlight is that dput can flexibly handle generic recursion into structure and cell arrays. It will work through these objects, repeatedly calling itself, to eventually capture their entire organization down to their basic elements.

http://github.com/johncolby/dput

引用

John Colby (2024). dput (https://www.mathworks.com/matlabcentral/fileexchange/34076-dput), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersLow-Level File I/O についてさらに検索

Community Treasure Hunt

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

Start Hunting!

johncolby-dput-7f5f0b5/

バージョン 公開済み リリース ノート
1.1.0.0

Added support for logical, integer, complex double data types. Added option to specify desired precision. Added xUnit tests.

1.0.0.0