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!