This question already has an answer here:
Is there any function in MATLAB 2010 or below versions to print a result (eg: Some matrices) in tabular form? All I got from googling was a table()
function that works only in MATLAB 2013 or above versions. I've got MATLAB 2010 in my machine and it's not practical to download a newer version as it is very large and I'm in a hurry. Thank you.
How about using
displaytable
from Matlab File Exchange: http://www.mathworks.co.uk/matlabcentral/fileexchange/33717-display-formatted-text-table-of-dataHere's an example lifted from the documentation:
Example 1 - Basic usage
To format the first number in each row as a decimal (%d), the second number %16.4f, and the third as %16.5E do the following:
In this case 16 will be the field width, and '.5E' is what to use for the fms argument
This is the formatted output:
Hi I am not sure if thats the function you meant with
table()
. What I am using is:c_Output is a matrix which contains my data and row/col names. The position is counted from the bottom left corner. So Top right would be (1,1). You would have to adjust it for each graph/position manually. Don't know if there is a build in function that converts a table to a "plot"
For Matlab versions 2012 and below,
can use printmat
or use
with reference: Display matrix with row and column labels
For Matlab versions 2012 and greater:
Use array2table, which converts an array into a table.
Example: