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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
75<br />
y1=sin(x1*pi/12.5)+(1/3)*sin(3*x1*pi/12.5)+(1/5)*sin(5*x1*pi/12.5);<br />
y=y1'+2.0<br />
%set max word length<br />
nw=5;<br />
%find signal length<br />
nn=size(y);<br />
n=nn(1,1);<br />
% clear final word length<br />
fwl=zeros(50,1);<br />
%calculate dictionary of all words. The dictionary is d<br />
f=0;<br />
%w=word length<br />
<strong>for</strong> w=2:nw<br />
<strong>for</strong> s=1:n-w+1<br />
c=zeros(w,1);<br />
c(1:w)=y(s:s+w-1);<br />
f=f+1;<br />
d(f,1:w)=(c(1:w))';<br />
end<br />
end<br />
%count the occurrences of each word, call this kount<br />
kount=ones(f,1);<br />
%zero duplicate rows of dictionary and kount<br />
<strong>for</strong> r=1:f-1<br />
<strong>for</strong> rr=r+1:f<br />
if (r