get_visual_data.m

来自「This a framework to test new ideas in tr」· M 代码 · 共 12 行

M
12
字号
function data = get_visual_data( filename )fid1=fopen(filename,'r');%read the first number, it is an integer reporting the number of samplessiz1=fscanf(fid1,'%d',1)data=zeros(siz1,1)+i*ones(siz1,1);for(ind=1:siz1)     RE=fscanf(fid1,'%f',1);     IM=fscanf(fid1,'%f',1);     data(ind)=RE+i*IM;end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?