構造体からの配列の抽出方法について
Ältere Kommentare anzeigen
構造体から配列を抽出する方法についてお聞きしたいです。現在のファルダーから全てのtiffファイルの名前やその他の情報を構造体「list」に格納しています。ここから全てのtiffファイルの名前のみを別の「name」という配列に格納したのですが、格納すると最初のファイルの名前しか格納されません。どのようにしたら全てのファイルの名前が「name」に格納されますか?因みにgetfield関数を使ってもうまくできませんでした。よろしくお願いします。
下は現在のコードです。
list = dir('*.tif');
name = {};
name = list.name;
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 構造体 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!