你已经派生过 geomesh
镜像自地址
https://gitee.com/sduem/geomesh.git
已同步 2025-08-06 11:16:50 +08:00
17
lib/get_curveTxtFile.m
普通文件
17
lib/get_curveTxtFile.m
普通文件
@@ -0,0 +1,17 @@
|
||||
|
||||
%Gets the path of a file with a specific character in the folder
|
||||
function filenames = get_curveTxtFile(data_dir,id,str)
|
||||
% data_dir:folder path
|
||||
% id:The 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
|
在新工单中引用
屏蔽一个用户