用matlab语言编的偏最小二乘法程序 function [ax,mx,stdx] = auto(x) [m,n] = size(x); mx = mean(x); stdx = std(x); ax = (x-mx(ones(m,1),:))./stdx(ones(m,1),:);