Perform calculation on model object

1 view (last 30 days)
Joel
Joel on 24 Jun 2018
Edited: Joel on 24 Jun 2018
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.

Answers (0)

Categories

Find more on Climate Science and Analysis in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!