
% WRITING TEXT FILES
% MOO K. CHUNG
% OCT 7,2002


control1=[
5356
5451
5022
5398
5340
5283
7064
7377
7287
9936
9712];


temp=analyze_read('/study/morsub/M7377/E7377S3.img');
imagesc(temp.data(:,:,60))
a=temp.data;
b=reshape(a,256*256*124,1);
save brain1.ascii b -ASCII

fid=fopen('brain3.ascii','wt');
fprintf(fid,'%3d\n',b);
fclose(fid);

hoho=load('brain1.ascii');
hoho2=reshape(hoho,256,256,124);
imagesc(hoho2(:,:,60))
colorbar
%imagesc(i.data(:,:,40));
