Commit b969f03e authored by Russell Luke's avatar Russell Luke
Browse files

matlab translation of Elser's data processor

parent a015d132
load('InputData/Phase/Elser/data100E')
x=data100E;
datapow=0;
M=max(size(x));
fmag=zeros(M, M/2);
Fmag=zeros(M,M);
for(i=1:M)
j=1;
datapow=x(i,j)+datapow;
fmag(i,j)=sqrt(x(i,j))/M;
Fmag(i,j) = fmag(i,j);
Fmag(M-(i-1),M-(j-1)) = fmag(i,j);
for(j=2:M/2-1)
datapow=2*x(i,j)+datapow;
fmag(i,j)=sqrt(x(i,j))/M;
Fmag(i,j) = fmag(i,j);
Fmag(M-(i-1),M-(j-1)) = fmag(i,j);
end
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment