Can I build a gradient colored table based on its values in matlab?

You can use uitable to display a matrix as a table. It has a BackgroundColor property, but that can only be set for the entire table.

You can however get around this by inserting custom HTML tables like described here.


Here's the uitable properties list:

http://www.mathworks.com/help/techdoc/ref/uitableproperties.html

Using handles, you can create one figure and make individual tables, each one column, each with their own BackgroundColor and Position properties.

Here's an example of multiple uitables on one figure:

Display multiple uitable objects in the same figure?