I'm a beginner in Matlab
Please could you help me with the following code:
I want to write a sequence s_n = 1/n where n=1,2...100 and plot the result.
I tried this, n=1
for i = 1:100
But It only displays the last number for n=100 and divides
I have no idea how to do it and the results I found don't satisfy me.