关于matlab系列无法调用mapminmax函数的解决方法matlab7.0/7.1以及以下版本的函数库中没有mapminmax函数,所以编程调用这个函数时会提示未定义该函数,查了写资料,但是网友回答的太不靠谱了,我自己做了下总结,方法如下:1.matlab升级到7.8或者以上版本,这些版本的matlab中自带有mapminmax函数,可以直接调用。2.不想升级的话,我们就要自己写mapminmax函数了,这里我提供mapminmax函数的源程序如下:function[out1,out2]=mapminmax(in1,in2,in3,in4)%MPMINMAXMapmatrixrowminimumandmaximumvaluesto[-11].%%Syntax%%[y,ps]=mapminmax(x,ymin,ymax)%[y,ps]=mapminmax(x,fp)%y=mapminmax('apply',x,ps)%x=mapminmax('reverse',y,ps)%dx_dy=mapminmax('dx',x,y,ps)%dx_dy=mapminmax('dx',x,[],ps)%name=mapminmax('name');%fp=mapminmax('pdefaults');%names=mapminmax('pnames');%mapminmax('pcheck',fp);%%Description%%MAPMINMAXprocessesmatricesbynormalizingtheminimumandmaximumvalues%ofeachrowto[YMIN,YMAX].%%MAPMINMAX(X,YMIN,YMAX)takesXandoptionalparameters,%X-N新疆matrixora1xTSrowcellarrayofN新疆matrices.%YMIN-MinimumvalueforeachrowofY.(Defaultis-1)%YMAX-MaximumvalueforeachrowofY.(Defaultis+1)%andreturns,%Y-EachM新疆matrix(whereM==N)(optional).---本文来源于网络,仅供参考,勿照抄,如有侵权请联系删除---%PS-Processsettings,toallowconsistentprocessingofvalues.%%MAPMINMAX(X,FP)takesparametersasstruct:FP.ymin,FP.ymax.%MAPMINMAX('apply',X,PS)returnsY,givenXandsettingsPS.%MAPMINMAX('reverse',Y,PS)returnsX,givenYandsettingsPS.%MAPMINMAX('dx',X,Y,PS)returnsMxN新疆derivativeofYw/respecttoX.%MAPMINMAX('dx',X,[],PS)returnsthederivative,lessefficiently.%MAPMINMAX('name')returnsthenameofthisprocessmethod.%MAPMINMAX('pdefaults')returnsdefaultprocessparameterstructure.%MAPMINMAX('pdesc')returnstheprocessparameterdescriptions.%MAPMINMAX('pcheck',fp)throwsanerrorifanyparameterisillegal.%%Examples%%Hereishowtoformatamatrixsothattheminimumandmaximum%valuesofeachrowaremappedtodefaultinterval[-1,+1].%%x1=[124;111;322;000]%[y1,ps]=mapminmax(x1)%%Next,weapplythesameprocessingsettingstonewvalues.%%x2=[523;111;673;000]%y2=mapminmax('apply',x2,ps)%%Herewereversetheprocessingofy1togetx1again.%%x1_again=mapminmax('reverse',y1,ps)%%Algorithm%%ItisassumedthatXhasonlyfiniterealvalues,andthat%theelementsofeachrowarenotallequal.%%y=(ymax-ymin)*(x-xmin)/(xmax-xmin)+ymin;%%SeealsoFIXUNKNOWNS,MAPSTD,PROCESSPCA,REMOVECONSTANTROWS%Copyright1992-2006TheMathWorks,Inc.%$Revision:1.1.6.6$%Processfunctionboilerplatescriptboiler_process%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Name---本文来源于网络,仅供参考,勿照抄,如有侵权请联系删除---functionn=namen='MapMinimumandMaximum';%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ParameterDefaultsfunctionfp=param_defaults(values)iflength(values)>=1,fp.ymin=values{1};elsefp.ymin=-1;endiflength(values)>=2,fp.ymax=values{2};elsefp.ymax=fp.ymin+2;end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ParameterNamesfunctionnames=param_names()names={'MininumvalueforeachrowofY.','MaximumvalueforeachrowofY.'};%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ParameterCheckfunctionerr=param_check(fp)mn=fp.ymin;mx=fp.ymax;if~isa(mn,'double')||any(size(mn)~=[11])||~isreal(mn)||~isfinite(mn)err='yminmustbearealscalarvalue.';elseif~isa(mx,'double')||any(size(mx)~=[11])||~isreal(mx)||~isfinite(mx)||(mx<=mn)err='ymaxmustbearealscalarvaluegreaterthanymin.';elseerr='';end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%NewProcessfunction[y,ps]=new_proc...