# MATLAB: Code the function in Matlab

I want to code this function in matlab ( ∑_{ i=1}^{n} f(x_{i})-y_{i} ), x_{i}=(x_{1},x_{2},…,x_{n}) and y_{i}=(y_{1},y_{2},…y_{n}). So, how can I write the code. Is there anyone who can help me? Thanks in advance.
Best regars, John

• for K = 1 : 5  Z(K) = X(K) - Y(K);end