?? getvec.m
字號(hào):
function [inp,nsam]=getvec
%
% Copyright (c) 1995 by Philipos C. Loizou
%
global TWOFILES TOP filename filename2 HDRSIZE HDRSIZE2 bpsa bpsa2
global ftype ftype2 S0 S1 En Be En2 Be2
if TWOFILES==1 & TOP==1
fname=filename2;
offSet=Be2*bpsa2+HDRSIZE2;
ftp=ftype2;
nsam= En2-Be2;
else
fname=filename;
offSet=Be*bpsa+HDRSIZE;
ftp=ftype;
nsam=En-Be;
end
fp = fopen(fname,'r');
if fp<=0
error('Could not open file..');
end
st = fseek(fp,offSet,'bof');
inp=zeros(1,nsam);
inp = fread(fp,nsam,ftp);
fclose(fp);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -