フィルターのクリア

How to add a field to a matlab struct.

3 ビュー (過去 30 日間)
Daniel Boateng
Daniel Boateng 2019 年 3 月 15 日
コメント済み: madhan ravi 2019 年 3 月 15 日
I have a matlab function that takes a struct array in my workspace as an input.The struct has fields a and b. I want to add another field c in the struct. Please how fdo I do this.

回答 (1 件)

madhan ravi
madhan ravi 2019 年 3 月 15 日
yourstruct.c=...;
% doc setfield()
  7 件のコメント
Daniel Boateng
Daniel Boateng 2019 年 3 月 15 日
Thanks bro. It works perfectly
madhan ravi
madhan ravi 2019 年 3 月 15 日
Thank you Guillaume for the explanation.

サインインしてコメントする。

カテゴリ

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