function Ind = LinearSearch(List,t)
%Ind = LinearSearch(List,t)
%inputs: List = a (row or column) vector, t = a number
%output: Ind = the first index such that vector List
%has x as corresponding component, will be zero if List
%does not have t as a component
Ind = 0;, i=1;
while i<=length(List) & Ind == 0
if List(i)==t, Ind = i;, end
i=i+1;
end