MATLAB: Function

matlab function

Hi i am very new in matlab. I want to use function in main program which is
function c = myfile(a)
c = 640380./exp(5107.4/a)
The input variable a is a column data of 365 rows. When i am using the function in main program it is giving uniform 365 values of c . Can anybody why is it so and how to get the different values ?
best regards
rahman

Best Answer

Change the 5107.4/a to 5107.4 ./ a