MATLAB: Signal cutting

MATLAB

Hello,
I have a sine signal, and I want to remove say every third period, and then to combine all the pieces without that every third period. I was trying to use "for" cycle, but didn't work out. Maybe someone knows the code concerning this issue?
Many thanks

Best Answer

Thanks Walter, but that's not the point, every third period has different power, and I need to remove it.