How to calculate the number of sub files?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ke
am 9 Dez. 2022
Beantwortet: Zahrah Walid
am 9 Dez. 2022
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);????
Akzeptierte Antwort
Zahrah Walid
am 9 Dez. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!