You mixed up variable i with imaginary unit.
I also corrected the wrong index in omega.1. You used a vector index but it should have been a literal index. This had no negative effect to the calculations, though, but it created omega as a 2 x 1 vector.
BTW, there is no need for PM if you have a follow up question.
i'am afraid i need your help again , i tried my best to fix it on my own but i didn't succeed
this is the last part and i hope i wont bother you again
thank you in advance
The error in your sheet is because those values are not defined, so you will have to define them by using := before you use them.
You defined S1 for index 0 to 30 but now you try to access vector values with indices 31 to 100 which do not exist.
So either use k:=0..100 in all places or k:=0..30 everywhere.
thank you so much i fix it
can you please tell why y looks different in the last graph ???