フィルターのクリア

How to copy a structure without a field?

7 ビュー (過去 30 日間)
Mr M.
Mr M. 2018 年 10 月 16 日
編集済み: Stephen23 2018 年 10 月 16 日
I have p with field1, filed2, filed3 (p(1).field1, p(2).filed1, p(1).filed2, etc.). I want to make a copy: q = p, but copy only filed1 and filed3 for example. How to do that?

採用された回答

Stephen23
Stephen23 2018 年 10 月 16 日
編集済み: Stephen23 2018 年 10 月 16 日
Use rmfield:
q = rmfield(p,'field2')

その他の回答 (0 件)

カテゴリ

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