How to calculate the number of sub files?

2 次查看(过去 30 天)
What function is used to import the path file? Is ‘dir’ ?the total number of displays is 0,i think the function is wrong.
A=dir([...........]);
N=length(A);????

采纳的回答

Zahrah Walid
Zahrah Walid 2022-12-9
You can use:
fds = fileDatastore("folder/file path", 'ReadFcn', @load); %you can use (fullfile) function to enter the file path
N = length(fds.Files);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

产品


版本

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by