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

4 views (last 30 days)
I am wondering how to add two fields together that are apart of a specified structure, num. Specifically, what command would be used?

Accepted Answer

Von Duesenberg
Von Duesenberg on 11 Mar 2018
It's not different from two seperate numeric variables: num.C = num.A + num.B

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!