# MATLAB: How to apply equation to all data in column

mathematicsMATLABmatlab function

I have namburs C= (4.6 17.9 4.6 18.5 7.8 1.5 5.9 6.3)
And i hvae two conatat numbers A=4.7 and. B=7.8
And equation is Y=log((A-C)/(C-B)) How can I apply this equation to all the numbers in C? So I can get Y for all of them. Please help

C = [4.6 17.9 4.6 18.5 7.8 1.5 5.9 6.3];A = 4.7;B = 7.8;Y = log((A-C)./(C-B))
Y = log(abs((A-C)./(C-B)))