フィルターのクリア

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);????
  1 件のコメント
Voss
Voss 2022 年 12 月 9 日
What are you trying to do?

サインインしてコメントする。

採用された回答

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 Center および File ExchangeData Type Conversion についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by