[file,path]=uigetfile({'1__A'});
edt1=set(handles.edit1,'string',fullfile(path,file));
temp=get(handles.edit1,'String');
filepath=temp;
fp=fopen(filepath);
fseek(fp,8,'bof');
offset=fread(fp,1,'int','b');
fseek(fp,181,'bof');
Na=str2double(fread(fp,6,'*char'));
fseek(fp,277,'bof');
Prefix=str2double(fread(fp,4,'*char','b'));
Nr=str2double(fread(fp,8,'*char','b'))./8;
data=zeros(Nr,Na);fseek(fp,offset,'bof');
for q=1:Na
fseek(fp,Prefix,'cof');
temp1=fread(fp,Nr.*2,'float','b');
data(:,q)=temp1(1:2:end)+1i.*temp1(2:2:end);
endfclose(fp);
axes(handles.g1);
image(abs(data)./1e3),colormap('gray');
guidata(hObject,handles);
学过C语言,没学过matlab。