MAT-ファイルをロードする前にファイルに含まれる変数一覧を知る方法はありますか?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 25 Okt. 2013
Beantwortet: MathWorks Support Team
am 25 Okt. 2013
MAT-ファイルをロードする前にファイルに含まれる変数一覧を知る方法はありますか?
Akzeptierte Antwort
MathWorks Support Team
am 25 Okt. 2013
下記例の様に、whos関数に -file オプションを付け、MAT-ファイル名を指定することで、事前に変数一覧を確認することができます。
whos -file MAT-ファイル名
【例】 2変数 x,y を含む test.mat ファイルの変数を確認
>> whos -file test.mat
Name Size Bytes Class Attributes
x 1x100 800 double
y 4x4 16 uint8
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu ワークスペース変数と MAT ファイル finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!