function noticks(a,b)
% noticks - removes ticks from current axis
%
% noticks % removes all ticks
% noticks('x') % removes x ticks
% noticks('yz') % removes y and z ticks

if nargin==0
	ax=gca; spec='xyz';
elseif nargin==1
	if ishandle(a), ax=a; spec='xyz';
	else ax=gca; spec=a;
	end
else
	ax=a; spec=b;
end

if ismember('x',spec), set( ax, 'XTick',[]); end
if ismember('y',spec), set( ax, 'YTick',[]); end
if ismember('z',spec), set( ax, 'ZTick',[]); end
