function l=normal_likelihood_vector(x,mu,sigma2) % Usage % normal_likelihood_vector(x,mu,sigma2) % % where X is a vector of data, MU is a vector of means and SIGMA2 is a % vector of variances. If must be the case that X, MU and SIGMA2 have the % same size. % % L is the normal likelihood and is the same size as X l=(1./sqrt(2*pi.*sigma2)).*exp((-(x-mu).^2)./(2.*sigma2));