Borrar filtros
Borrar filtros

How to calculate the number of sub files?

2 visualizaciones (últimos 30 días)
ke
ke el 9 de Dic. de 2022
Respondida: Zahrah Walid el 9 de Dic. de 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);????

Respuesta aceptada

Zahrah Walid
Zahrah Walid el 9 de Dic. de 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);

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by