用于多副图片的曲线拟合
close all
clear
m=4
for(i=1:4)
filename=strcat('C:\Users\rui\Desktop\新建文件夹',int2str(i),'.bmp');
raw(:,:,i)=imread(filename);
end
B=reshape(raw(125,128,:),1,m);
%k=1:m;
%plot(k,B)
%grid on
a=max(B)
b=min(B)
C=B-b;
k=1:m;
plot(k,C);
grid on