構造体からの配列の抽出方法について
Mostrar comentarios más antiguos
構造体から配列を抽出する方法についてお聞きしたいです。現在のファルダーから全てのtiffファイルの名前やその他の情報を構造体「list」に格納しています。ここから全てのtiffファイルの名前のみを別の「name」という配列に格納したのですが、格納すると最初のファイルの名前しか格納されません。どのようにしたら全てのファイルの名前が「name」に格納されますか?因みにgetfield関数を使ってもうまくできませんでした。よろしくお願いします。
下は現在のコードです。
list = dir('*.tif');
name = {};
name = list.name;
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 構造体 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!