...are the outputs not within -1 and 1 when i apply tansig as...
Whatever the input to the "tansig" function, output should be in the range [-1,1]. Because the equation of the "tansig" is : tansig(x) = (2/(1+exp(-2*x)))-1; I suggest you to try it by normalizing the input values...