You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
594 B
Matlab

function [ratio,MTF_static,MTF_defocus,MTF_zg,MTF_hp,MTF_plj,MTF_hot,MTF_gas,dp_push] = readinput_MTF()
%打开参数文件读取数据
fileID = fopen("input_canshu.txt");
%指定读取格式
dataFormat = '%f %f %f %f %f %f %f %f %f';
%跳过参数文件第一行读取数据
data = textscan(fileID,dataFormat,'HeaderLines',1);
%关闭参数文件
fclose(fileID);
ratio = data{1};
MTF_static = data{2};
MTF_defocus = data{3};
MTF_zg = data{4};
MTF_hp = data{5};
MTF_plj = data{6};
MTF_hot = data{7};
MTF_gas = data{8};
dp_push = data{9};
end