Thursday, July 26, 2012

Reset customized property values in Matlab

In Matlab, property values such as 'ColorOrder' can be customized using the set command. This is applicable to most property commands.

>> set (0, 'ColorOrder',[0 0 0; 0 0.5 0.5; 0 1 1];

In order to go back to the default Matlab settings, use to 'remove' tag. This will reset the property value to pre-defined Matlab values.

>> set (0, 'ColorOrder','remove');

Thanks to Maria for this nugget!