samer@44: % box - wrap value in cell samer@44: % box :: A -> cell {A}. samer@44: % samer@44: % NB. this function hides Matlab's box function which samer@44: % controls the appearance of the current axis. HOWEVER, samer@44: % if this function is called with no return value, then samer@44: % box('on') and box('off') control the axis box as before. samer@44: % None of the other box arguments patterns work. [sorry] samer@44: function y=box(x), samer@44: if nargout==1, y={x}; else set(gca,'Box',x); end