How to output a large matrix as a scale-able image/figure/something
Show older comments
So I have this huge data set, top row is labels and everything else is a numerical value (this is only a piece of it). This data set is of variable length, depending on my function input.
What i want to do, is output this as a image or a figure so I can scale it. Reason being is because i want to post it, in it's current form, into a document. But when i publish it, it ends up line spacing everything and making it look horrible...
When Matlab outputs the solution in the command window, it looks great (I included a partial picture). It's exactly what I want... I would cheat and just snip the data-set as its shown in the command window, but my computer screen is too small to get the whole thing with any quality.
So in summary, I'm looking for a way to make this huge data-set outputted in one image/table/figure or whatever so that it can be inputted into another document, exactly as Matlab outputs it.
Just so you know, the top row is a symbolic vector, and all the other rows are outputs of vpa(Matrix,2). They are outputted by doing display([top row ; vpa(Matrix,2)]).
Hopefully this makes sense... Any help would be appreciated! File_Thing is the entire matrix
ans =
[ xi, yi, DD_1, DD_2, DD_3, DD_4, DD_5, DD_6, DD_7, DD_8, DD_9, DD_10, DD_11, DD_12, DD_13, DD_14, DD_15, DD_16, DD_17, DD_18, DD_19]
[ 1.0, 6.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 0, 0, 2.9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 2.0, 9.0, 0, 1.4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 0, 0, 5.7, 0, -0.78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 3.0, 15.0, 0, -0.94, 0, 0.26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 0, 0, 3.8, 0, 0.27, 0, -0.057, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[ 4.0, 19.0, 0, -0.12, 0, -0.02, 0, 5.1e-3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
3 Comments
Timothy Corley
on 8 Jun 2018
Image Analyst
on 8 Jun 2018
Make it easy for people to help you by attaching your variable in a .mat file with the paper clip icon.
Timothy Corley
on 8 Jun 2018
Answers (1)
Timothy Corley
on 10 Jun 2018
0 votes
1 Comment
Giancarlo Arcese
on 10 May 2022
This is the greatest answer of all time. omw to go find a big ass tv.
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!