Write a function which gets three numbers and return the summation and average of them.  Write a function which let us know between two numbers which one is greater.  Write a function which tells us if two numbers have the same sign or not. (Ignore the input number 0, so the inputs are either greater than 1 or smaller than -1)  Write a function which change the negative numbers in a vector to zero.  Write a function which check if each element of a vector is a vector is in a rage. your function should have three inputs and one output. First input is the vector, second input is the start point of the range and the last input is the end point of the range. The output is a vector with the same number of elements as the input vector and it contains either 1 or 0. For example if the third element of the input vector is in the range then the third element of the output vector must be 1, and if the fifth element is not in the range then the firth element of the output vector must be 0.  Write a function which can count how many times a number has been repeated in a vector. Your function fill need two inputs, a vector and the number you are interested in knowing that how many times it has been repeated.  
a)
 function f1=avge(k1,k2,k3)
 f1=(k1+k2+k3)./3;
 end
 b)
 function f2 =grtr(k1,k2)
 if (k1>k2)
 f2=k1;
 elseif (k1<k2)
 f2=k2;
 else
 disp(\'equal\');
 end
 end
 c)
 function f3 =sgn(k1,k2)
 if (k1.*k2<0)
 disp(\'opposite sign\')
 else
 disp(\'same sign\');
 end
 end
 d)
 function f4=zro(A)
 n=size(A);
 for k=1:n
 if (A(k)<0)
 A(k)=0;
 end
 end
 end
 e)
 function f5=range(A,ini,fin)
 f5=zeros(1,size(A));
 n=size(A);
 for k=1:n
 if (ini<=A(k)<=fin)
 f5(k)=1;
 else
 f5(k)=0;
 end
 end
 end
 f)
 function f6 =count(A,d)
 n=size(A);
 f6=0;
 for k=1:n
 if (A(k)=d)
 f6=f6+1;
 end
 end
 end