Sum structures with an array 1x1 each one
6 ビュー (過去 30 日間)
古いコメントを表示
Hi, i amtrying to sum an structure but manually wil be considerable large
Q.O20 = 1
Q.B3 = 2
Q0h = Q.B3 + Q.O20;
It is quite easy with few structures but i have a problem, as this structure depending on the experiment can be up to 35 variables
There is anyway to sum all Q values from the structure? I have tried this but won't get the values
Q0h = sum(Q.Variables)
Q0h = sum(Q,'all')
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!