你已经派生过 geomesh
镜像自地址
https://gitee.com/sduem/geomesh.git
已同步 2025-08-03 18:26:51 +08:00
17 行
477 B
Matlab
17 行
477 B
Matlab
|
||
%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 |