I have a struct array() with multiple fields, one of the fields is timediff and it has a set of values. I want to find the sum of this particular field and store it in a variable. Can someone help me with this?
output(activityNum).timediff = etime(endtime,starttime);
output(activityNum).values = zRPM(startind:endind);
output(activityNum).timestampvalues = timestamp(startind:endind);
output here is my struct.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2017년 9월 27일

댓글:

2017년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by