Azzera filtri
Azzera filtri

Perform calculation on model object

1 visualizzazione (ultimi 30 giorni)
Joel
Joel il 24 Giu 2018
Modificato: Joel il 24 Giu 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.

Risposte (0)

Categorie

Scopri di più su Climate Science and Analysis in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by