Hi, I'm new to matlab.(adsbygoogle = window.adsbygoogle || []).push({});

I'm trying to sum a function similar to 2^{n}from 0 to n where n is specified as a digit and not a list. I am using the sum() function but I don't really know how to get it to work right for this.

Thanks

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab summations

**Physics Forums | Science Articles, Homework Help, Discussion**