Perform calculation on model object

1 回表示 (過去 30 日間)
Joel
Joel 2018 年 6 月 24 日
編集済み: Joel 2018 年 6 月 24 日
I have a model object with 30 different properties with the following structure:
xyCell: {{2609×3 cell}}
sNames: {1×55 cell}
tNames: {'Country' 'Slist' 'Climate'}
covFlag: [2 1 1 1 1]
ScaleFlag: []
a2s: 50
b2s: 1
Sigma: [55×1 double]
F: 6
V: [5×5 double]
U: [15×15 double]
G: [15×1 double]
A: {[101×2 double]}
P: [101×2 double]
I want to run the model numerous times and save an object for each run and then calculate the mean of all of the object properties for further calculations.
I have managed to save the object for each run by using a simple for loop:
for i:1:10
...
NewObject(:,i)=Object;
end
And I can access each of the object by:
NewObject(1,i).G
But I am really struggling when I want to take the mean of each data point across the different (n=i) object layers. Maybe this is not possible? Or if it is possible I would appreciate any guidance.

回答 (0 件)

カテゴリ

Help Center および File ExchangeClimate Science and Analysis についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by