mapminmax是歸一化函式,即將矩陣的每一行處理成[-1,1]區間。其基本呼叫形式有:[Y,PS] = mapminmax(X,YMIN,YMAX)例如:>> x=[2,3,4,5,6;7,8,9,10,11];>> [y,ps]=mapminmax(x,0,1)執行結果y = 0 0.2500 0.5000 0.7500 1.00000 0.2500 0.5000 0.7500 1.0000ps = name: "mapminmax"xrows: 2xmax: [2x1 double]xmin: [2x1 double]xrange: [2x1 double]yrows: 2ymax: 1ymin: 0yrange: 1例如:>> x=[2,3,4,5,6;7,8,9,10,11];>> y=mapminmax(x,-1,1)執行結果y =-1.0000 -0.5000 0 0.5000 1.0000-1.0000 -0.5000 0 0.5000 1.0000
mapminmax是歸一化函式,即將矩陣的每一行處理成[-1,1]區間。其基本呼叫形式有:[Y,PS] = mapminmax(X,YMIN,YMAX)例如:>> x=[2,3,4,5,6;7,8,9,10,11];>> [y,ps]=mapminmax(x,0,1)執行結果y = 0 0.2500 0.5000 0.7500 1.00000 0.2500 0.5000 0.7500 1.0000ps = name: "mapminmax"xrows: 2xmax: [2x1 double]xmin: [2x1 double]xrange: [2x1 double]yrows: 2ymax: 1ymin: 0yrange: 1例如:>> x=[2,3,4,5,6;7,8,9,10,11];>> y=mapminmax(x,-1,1)執行結果y =-1.0000 -0.5000 0 0.5000 1.0000-1.0000 -0.5000 0 0.5000 1.0000