I want to read from a text file and process the text (compress incrept).
I am using the textread
function in MATLAB. My problem is that it is not reading the white spaces correctly.
该守则是:
w=textread( in.txt , %c , delimiter ,
, whitespace , );
e=double(w);
[z,x]=size(e);
r=vec2mat(e,ceil(z/100));
r=uint8(r);
imwrite(r, jocop.gif )
[t,y]=norm2lzw(uint8(e),z);
u=vec2mat(t,ceil(z/100));
imwrite(double(u), compro.gif )
你会注意到,我正在使用<代码>%c,以便获得一个果园,而不是一个电池阵列,但我仍然无法得到白天空间。 任何建议?