02.06.2014 Views

symbolic dynamic models for highly varying power system loads

symbolic dynamic models for highly varying power system loads

symbolic dynamic models for highly varying power system loads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

91<br />

end<br />

end<br />

newwd;<br />

wdlen;<br />

mm=wdlen+1;<br />

emp=any(newwd(:,2:nw));<br />

if(emp==0)<br />

newI(p)=newwd(1);<br />

else<br />

newI(p)=newwd(mm);<br />

end<br />

% New value of current, newI is the last symbol of the new % word,<br />

selected from the mini dictionary.<br />

sinus(p)=M*sin((2*pi*60*0.0001*p)+ph);<br />

% Sinus is a sinusoidal source <strong>for</strong>med by taking the<br />

% fundamental component of the historical data set.<br />

junk(p)=((newI(p)-B)/A)-sinus(p); % amount of<br />

% unwanted components in the new current value.<br />

good(p)=a(100+p)-junk(p); % injecting the<br />

% unwanted components in phase opposition, into the actual % future<br />

current.<br />

x=[x,I(100+p)];<br />

x11=[x11;I(100+p)];<br />

newI(p);<br />

clear ss k n nx minx minfr len min wtfr sm sm1 newfr cfr sz<br />

newwd d1 f2 kount1 frac_occ<br />

p=p+1;<br />

end % end of while<br />

filt1=good'/1000;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!