How can I fetch the list of fields in a structure? Regards, Preetam

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 16 日

0 投票

Use fieldnames

その他の回答 (1 件)

Shivam
Shivam 2022 年 7 月 30 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

タグ

質問済み:

2015 年 8 月 16 日

回答済み:

2022 年 7 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by