Q:

# How do you do summation in MATLAB?

A:

### Quick Answer

MATLAB is a high level programming language used in numerical computing. It is widely used in academia, engineering and science. MATLAB is used for signal processing, communications, image and video processing, control systems and testing and measurement. MATLAB also has several Easter eggs such as pictures, jokes and philosophical musings when the user types in "why."

Continue Reading

## Keep Learning

### Full Answer

1. Determine if the summation is definite or indefinite

If the summation is indefinite, the sigma has an infinity symbol associated with it. This indicates that the summation has an infinite number of summands. If it is a definite summation, the sigma indicates the number of increments required.

2. Enter the indefinite summation in MATLAB

If the summation is indefinite, then the formula is entered like this: sum(f, i). The "f " is the summation function and "i" is the index of summation. The "i" is left as it is in the case of indefinite summation.

3. Enter the definite summation in MATLAB

If the summation is definite, the formula will be entered this way: sum(f, i = a..b). The "f" is the summation function and the "i" is the index of summation. The "a" is the lower bound of summation and the "b" is the upper bound of summation.

Learn more about Computer Programming
Sources:

## Related Questions

• A: In computing, a syntax error is an error in the use of the programming language resulting in the inability to execute the program. Computer programs need t... Full Answer >
Filed Under:
• A: The expression pi in MATLAB returns the floating point number closest in value to the fundamental constant pi, which is defined as the ratio of the circumf... Full Answer >
Filed Under:
• A: "If" statements are used in MATLAB to execute certain statements depending on the truth value of an expression. They are used in conjunction with "else" an... Full Answer >
Filed Under:
• A: The natural logarithm function in MATLAB is log(). To calculate the natural logarithm of a scalar, vector or array, A, enter log(A). Log(A) calculates the ... Full Answer >
Filed Under:
PEOPLE SEARCH FOR