semselect.m 223 Bytes
Newer Older
Simone Liuzzo's avatar
Simone Liuzzo committed
1 2 3 4 5 6 7
function lines=semselect(hfit,vfit)
%LINES=SEMSELECT(HLIST,VLIST)		Select lines in response matrix

[vx,vy]=meshgrid(224*(hfit-1),(1:224)');
[hx,hy]=meshgrid(224*(vfit-1),(1:224)'+16*224);
res=[vx+vy hx+hy];
lines=res(:)';