필터 지우기
필터 지우기

How to calculate the number of sub files?

조회 수: 2 (최근 30일)
ke
ke 2022년 12월 9일
답변: Zahrah Walid 2022년 12월 9일
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