MATLAB: Help in numerical exercise

n_p

Hi everyone,
I have a vector y2 starting from 1 to 100 with properties of y2(1)=1 and y2(i+1)-y2(i)=i+1
Knowing that i=1,…,99 what it will be y2(100)?
Thank you very much!!!
Best Regards.

Best Answer

If you look at this site in the section called Anecdotes" you will see a short cut to obtaining your answer. It doesn't require matlab at all.