Showing posts with label Matlab. Show all posts
Showing posts with label Matlab. Show all posts

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!


Sunday, July 17, 2011

Create a Matlab figure without any borders or box around the figure

set(gca,'visible','off')
    set(gca,'visible','off')
    set(gca,'xtick',[])
    set(gca,'ytick',[])
    set(h,'InvertHardcopy','off')
    box off