Use this folder in order to simulate a fictitious grid and calculate the flicker values whith different Grid phase angle settings.
I am working on flicker and I got your file from Matlab exchange.
I personally appreciate your sharing of knowledge with other researchers.
Your code fails in Matlab version 2016 a.
Do you have a new version to share with us?
great work there. still do you have the same sequance without simulation?