This function emulates the R version of dput()
, which writes ascii representations of variables that can be easily pasted back in and evaluated to recreate the objects. This is especially useful for quickly posting short reproducible examples on sites like Stack Overflow, without having to upload any separate data files.
MathWorks FileExchange: http://www.mathworks.com/matlabcentral/fileexchange/34076
Track latest development on GitHub: http://github.com/johncolby/dput
Contact: John Colby