function [a]=hardlim(n) if n>0 a=1 else a=0 end