p281=imread('test281.bmp');
>> p281center=p281(121:450,201:590,:);
>> p281gray=rgb2gray(p281center);
>> save('p281gray.bmp','p281gray');
>> p=reshape(p281gray,330*390,1);
>> p284=imread('test284.bmp');
>> p284center=p284(121:450,201:590,:);
>> p284gray=rgb2gray(p284center);
>> save('p284gray.bmp','p284gray');
>> data=reshape(p284gray,330*390,1);
>> p=[p,data];
最后一行代码出错,应该怎么改?求大神解惑。
>> p281center=p281(121:450,201:590,:);
>> p281gray=rgb2gray(p281center);
>> save('p281gray.bmp','p281gray');
>> p=reshape(p281gray,330*390,1);
>> p284=imread('test284.bmp');
>> p284center=p284(121:450,201:590,:);
>> p284gray=rgb2gray(p284center);
>> save('p284gray.bmp','p284gray');
>> data=reshape(p284gray,330*390,1);
>> p=[p,data];
最后一行代码出错,应该怎么改?求大神解惑。