Created
September 12, 2018 10:19
-
-
Save mschauer/5e788918feca72713091387421eecb9b to your computer and use it in GitHub Desktop.
Q: How do you write a (large) matrix to a file like it prints in the REPL, but without the `...`?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Q: How do you write a (large) matrix to a file like it prints in the REPL, but without the `...`? | |
| #A: @pfitzseb | |
| x = rand(100,100) | |
| open(expanduser("~/test"), "w") do io | |
| ctx = IOContext(io, :size => (100000,100000)) | |
| show(ctx, "text/plain", x) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IOContext(io, :size => (100000,100000))should actually just beIOContext(io, :limit => false).