I need to graph this equation, and I have no idea how to, because as soon as I declare y(n) = y(n-1) + 1, it throws results until 1000+ not having any regards of the n value.
Code used:
n = 1; x = []; y (1) = 1; while n <= 1000; n = n+1; x = [n,y]; y(n) = y(n-1) + 1; end stem(x);
Best Answer