📄 getvec.m
字号:
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);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -