フィルターのクリア

Fields in a Structure

13 ビュー (過去 30 日間)
Preetam Pal
Preetam Pal 2015 年 8 月 16 日
回答済み: Shivam 2022 年 7 月 30 日
How can I fetch the list of fields in a structure? Regards, Preetam

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 16 日
Use fieldnames

その他の回答 (1 件)

Shivam
Shivam 2022 年 7 月 30 日
You can fetch the fields of a structure S using fieldname this way.
fields = fieldnames(S)
It returns the field names of the structure array S in a cell array.

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by