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

4 vues (au cours des 30 derniers jours)
I am wondering how to add two fields together that are apart of a specified structure, num. Specifically, what command would be used?

Réponse acceptée

Von Duesenberg
Von Duesenberg le 11 Mar 2018
It's not different from two seperate numeric variables: num.C = num.A + num.B
  1 commentaire
Kyle Hunter
Kyle Hunter le 11 Mar 2018
so its just basic additon added on to the fact that the structure exists

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by