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

조회 수: 1 (최근 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에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by