(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

OK, so I have defined:

n=[0:1:100];

p=1.01; (but later will make this so it is inputted by user as a function)

dx1=100*(p-1)/(p^101-1);

dxn=p.^n*dx1;

I need to define y1-y100 like:

y0=1

y1=1/(1+dxn(1))

y2=1/(1+sum(dxn(1:2)))

y3=1/(1+sum(dxn(1:3))) etc

is there some way I can make this into some matrix with values up to y100 without having to write out and define each one individually? Maybe I'm being stupid but I can't see an easy way to do this. Any help would be much appreciated.

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

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!

# Homework Help: MATLAB matrix question

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