classificationkohonen.m

来自「神经网络源码可应用于遥感图像分类」· M 代码 · 共 21 行

M
21
字号
function classificationKohonen(w,m)
fp1=fopen('g:\lfx\newtask\exportedata\txtsx-total.txt','r');
fp2=fopen('g:\lfx\newtask\solution\sx-kohonen.grd','a');
while(~feof(fp1))
[class,count]=fscanf(fp1,'%d',[3,1]);
x_max=150;
x_min=10;
k=x_max-x_min;
class=(class-x_min)/k;
p=class;
a=simusm(p,w,m);
b=full(a);
for i=1:7
if (b(i)==1) break
end
end
fprintf(fp2,'%2d',i);
end
addheadstr('g:\lfx\newtask\solution\sx-kohonen.grd','g:\lfx\newtask\solution\sx-k2img.grd');
disp('The programe end');
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?