vq_s.m
上传用户:luvkyhj
上传日期:2013-06-25
资源大小:3k
文件大小:0k
- function s_num=vq_s(x,S)%this function is used to vq the x
- min_dis=destin(x,S(1,:));
- s_num=1;
- [s_row,s_vol]=size(S);
- for row=2:s_row
- if min_dis>=destin(x,S(row,:))
- min_dis=destin(x,S(row,:));
- s_num=row;
- end
- end