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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

86<br />

x=aa1(:,1:100);<br />

I_hist=x'-B; % Historical data set, without any shift, <strong>for</strong> % the<br />

purpose of RMS value comparison.<br />

I=aa1';<br />

<strong>for</strong> t=1:100<br />

II(t)=1*sin(2*pi*60*0.0001*t);<br />

end<br />

% II is a synthetic current source with unity amplitude and % points<br />

separated by the same sampling frequency as in<br />

% historical data set.<br />

IFFT=fft(II); % FFT of the above current signal.<br />

fac=abs(IFFT(2))% Finding a factor to obtain the true FFT.<br />

ph1=angle(IFFT(2)) % Phase angle of the fundamental.<br />

hisFFT=fft(a(1:100)); % FFT of the historical data set.<br />

M=fac*abs(hisFFT(2)) % True magnitude of the fundamental<br />

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

ph=angle(hisFFT(2)) % Phase angle of the fundamental<br />

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

x11=x'; % Historical data set.<br />

nn=size(x11);<br />

n=nn(1,1);<br />

nw=5;<br />

%calculate dictionary of all words. The dictionary is d<br />

f=0;<br />

%w=word length<br />

<strong>for</strong> w=1:nw<br />

<strong>for</strong> s=1:n-w+1<br />

c=zeros(w,1);<br />

c(1:w)=x11(s:s+w-1);

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

Saved successfully!

Ooh no, something went wrong!