annotate general/cellutils/box.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 3cedfd4549ef
children
rev   line source
samer@44 1 % box - wrap value in cell
samer@44 2 % box :: A -> cell {A}.
samer@44 3 %
samer@44 4 % NB. this function hides Matlab's box function which
samer@44 5 % controls the appearance of the current axis. HOWEVER,
samer@44 6 % if this function is called with no return value, then
samer@44 7 % box('on') and box('off') control the axis box as before.
samer@44 8 % None of the other box arguments patterns work. [sorry]
samer@44 9 function y=box(x),
samer@44 10 if nargout==1, y={x}; else set(gca,'Box',x); end