Thanks for that, the reason I had done that was that I was encountering a problem when I tried to do the range from 1..50 then when the denominator was T it said couldn't divide by zero even though my range should have started from 1. Is there another way to get round this?
I realise it's not very clear so I'll try to explain slightly better...
I can run the programme when I put T=1, which will give me the displacement at all 1600 points of which I only want the maximum absolute value. However, what I really want to do is to be able to write a programme that will allow me to get the max absolute value when T=0.02,0.04....20. Which would just give me the max abs value of displacement for each value of T.
Do you know if that is possible at all?
Thanks for your help, I really appreciate it.