Effacer les filtres
Effacer les filtres

How to calculate the number of sub files?

2 vues (au cours des 30 derniers jours)
ke
ke le 9 Déc 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);????
  1 commentaire
Voss
Voss le 9 Déc 2022
What are you trying to do?

Connectez-vous pour commenter.

Réponse acceptée

Zahrah Walid
Zahrah Walid le 9 Déc 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);

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Produits


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by