文件
geomesh/lib/get_curveTxtFile.m
刘明宏 90b2d9ba09 Code library
Signed-off-by: 刘明宏 <liuminghong@mail.sdu.edu.cn>
2023-06-22 06:27:19 +00:00

17 行
477 B
Matlab
原始文件 Blame 文件历史

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

%Gets the path of a file with a specific character in the folder
function filenames = get_curveTxtFile(data_dir,id,str)
% data_dirfolder path
% idThe position of the character
% Finding characters
% example: curve_01.txt;curve_02.txt
% CurveFiles = get_curveTxtFile(data_dir,[1:5],'curve');
D = dir(data_dir );
nf = 0;
for i=3:numel(D)
if strcmp(D(i).name(id),str)
nf = nf+1;
filenames{nf,1} = [data_dir '\' D(i).name] ;
end
end