Is it possible to visualize/edit a big matrix as a table ? I often end up exporting/copying big tables to Excel for seeing them, but I would prefer to stay in Mathematica and have a similar view as in Excel. Note that I'm looking for a non commercial solution. Thanks
|
Based on the approach of F'x this is a version aimed rather at large arrays. It should perform reasonably well independent of the array size and lets one edit the given variable directly. Performance suffers only from the maximal number of rows and columns to be shown, which can be controlled with the second argument. I did choose to use the "usual" syntax for controllers with a
You can test it with, e.g.:
This will confirm that
|
|||||||||
|
|
Here's a slight variation of Albert's answer in order to The perspective of not needing Excel anymore for just viewing big tables is really appealing ...
Example
|
||||
|
|
I am not keen on manually editing in big arrays, but if you just want to view one, perhaps this function grid is useful. It takes all options of Grid, and produces an adequately sized output cell that is easily scrolled:
|
|||
|
|
|
Whereas So I would second the suggestion to use
by selecting its cell bracket and copying it. Then start a new cell by typing
and paste the last output into it. Now you have the data in an input cell but still in the form of a grid. The cells can be edited by placing the cursor in them. The display is very bare-bones, but you can customize it to some extent with the |
|||
|
|
|
In order to provide a user-friendly way to edit a matrix, I usually do the following:
Because And taking into account all comments below (with thanks to celtschk, Heike and tkott), I wrote the following function:
Now rows and columns are numbered Excel-style, and it has scrollbars:
|
|||||||||||||||||
|
|
Maybe the undocumented TableView is helpful:
See this post. Or, as suggested in the comments, perhaps |
|||||||||||||||
|



