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.

69<br />

data sets and compares them by calculating the common signal index<br />

(CSI).<br />

% Program to compare two dictionaries X and Y and obtain a common<br />

signal index (CSI)<br />

***********************************************************<br />

%clear variables<br />

clear<br />

%Reading actual current data from a data file.<br />

Points=2000;<br />

fid=fopen('h:\exp.dat','rt');<br />

if(fid==(-1))<br />

disp('Error in opening the given input data file');<br />

end<br />

n=1;<br />

while n~=(Points+1)<br />

x1(n)=fscanf(fid,'%f',1);<br />

n=n+1;<br />

end<br />

% Reading regenerated current data from a data file.<br />

Points=2000;<br />

fid=fopen('h:\tri.dat','rt');<br />

if(fid==(-1))<br />

disp('Error in opening the given input data file');<br />

end<br />

n=1;<br />

while n~=(Points+1)<br />

y1(n)=fscanf(fid,'%f',1);<br />

n=n+1;

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

Saved successfully!

Ooh no, something went wrong!