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

1 visualización (últimos 30 días)
I am wondering how to add two fields together that are apart of a specified structure, num. Specifically, what command would be used?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by