Perform calculation on model object
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Climate Science and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!