chudyksg
asked on
matlab code into pseudocode
Can somebody translate this following code into pseudocode (explanation in normal words what is done) as I am not familiar with matlab and I want to implement it in java.
for ii = 1:interval:len
SECTIONS(:,kk) = dividefreqs(Y(ii:ii+window -1).*hanw, FS).';
kk = kk+1;
end
here especially I dont thet part Y(ii:ii+window-1).*hanw
is Y(ii:ii+window-1) iterating thorugh the array? and I read that if you multiply two arrays they have to have the same size but here "hanw" has size 16317 and window=512
and also this bit of code:
for ii = ssize(1):-1:2
FREQDIFF(ii-1,:) = SECTIONS(ii-1,:)-SECTIONS( ii,:);
end
for jj = 2:ssize(2)
SECDIFF(:,jj-1) = FREQDIFF(:,jj) - FREQDIFF(:,jj-1);
end
for ii = 1:ssize(1)-1
for jj = 1:ssize(2)-1
if SECDIFF(ii,jj) > 0
SECBIGGER(ii,jj) = 1;
end
end
end
for ii = 1:interval:len
SECTIONS(:,kk) = dividefreqs(Y(ii:ii+window
kk = kk+1;
end
here especially I dont thet part Y(ii:ii+window-1).*hanw
is Y(ii:ii+window-1) iterating thorugh the array? and I read that if you multiply two arrays they have to have the same size but here "hanw" has size 16317 and window=512
and also this bit of code:
for ii = ssize(1):-1:2
FREQDIFF(ii-1,:) = SECTIONS(ii-1,:)-SECTIONS(
end
for jj = 2:ssize(2)
SECDIFF(:,jj-1) = FREQDIFF(:,jj) - FREQDIFF(:,jj-1);
end
for ii = 1:ssize(1)-1
for jj = 1:ssize(2)-1
if SECDIFF(ii,jj) > 0
SECBIGGER(ii,jj) = 1;
end
end
end
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.