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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by