How can i add the two numbers specified in field A and B if num.A=2 and num.B=4

4 ビュー (過去 30 日間)
I am wondering how to add two fields together that are apart of a specified structure, num. Specifically, what command would be used?

採用された回答

Von Duesenberg
Von Duesenberg 2018 年 3 月 11 日
It's not different from two seperate numeric variables: num.C = num.A + num.B
  1 件のコメント
Kyle Hunter
Kyle Hunter 2018 年 3 月 11 日
so its just basic additon added on to the fact that the structure exists

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by