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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
70<br />
end<br />
%Calculation of scaling function<br />
N=8;<br />
minx=min(x1);<br />
maxx=max(x1);<br />
mat1=[minx 1;maxx 1];<br />
mat2=[1.01;N+0.99];<br />
mat3=inv(mat1)*mat2;<br />
A=mat3(1);<br />
B=mat3(2);<br />
miny=min(y1);<br />
maxy=max(y1);<br />
mat11=[miny 1;maxy 1];<br />
mat22=[1.01;N+0.99];<br />
mat33=inv(mat1)*mat2;<br />
C=mat33(1);<br />
D=mat33(2);<br />
x=fix(A*x1'+B); % Scaling function.<br />
y=fix(C*y1'+D); % Scaling function.<br />
%set max word length<br />
nw=3;<br />
%find signal length<br />
nn=size(x);<br />
n=nn(1,1);<br />
%calculate dictionary d <strong>for</strong> original signal.<br />
f=0;<br />
%w=word length<br />
<strong>for</strong> w=1:nw<br />
<strong>for</strong> s=1:n-w+1