MATLAB: The input N change in formula input

hi can any one tell me i have a formula D = −(2πc/λ^2) N where the c and λ are constant.but i want to make a program using matlab in which i give the any value of N its show the output. can any one tell m what i do… thnx

Best Answer

Lamda=1;
c=2;
D = @(N) -(2*pi*c/Lamda^2)*N
D(5) % for N=5