I'm having problem plotting some function from my homework assignment. I created a code similar in structure to what I am trying to do. Same problem, the graph is not showing. Do you guys have any clue what to do here?
The code is given as follows:
n = 1;h = 0.05;t(n) = 0;y(n) = 0;while t(n)+h < 8 y(n+1) = pi^(-n^2); t(n+1) = t(n) + h; n = n + 1;endplot(t(n),y(n))
Best Answer