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

Skip to content# MATLAB: Code the function in Matlab

###### Related Question

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

- Code function using Matlab code
- How to set Reallyl Basic iterative sum
- How to display only the last iteration
- Index exceeds the number of array elements at y2 for the finite difference formulas
- Unable to perform assignment because the left and right sides have a different number of elements.
- How do i write a matlab script to sum this expression

## Best Answer