Last change
on this file since 972 was 972, checked in by Eric.Larour, 16 years ago |
Include analysis_type in models. Swapped arguments for models and results in processresults
|
File size:
415 bytes
|
Line | |
---|
1 | function dof=modelsize(models)
|
---|
2 | %DOF - return the maximum number of degrees of freedom of the model
|
---|
3 | %
|
---|
4 | % Usage:
|
---|
5 | % dof=modelsize(models)
|
---|
6 |
|
---|
7 | %initialize dof
|
---|
8 | dof=0;
|
---|
9 |
|
---|
10 | %get all models
|
---|
11 | modelsname=fieldnames(models);
|
---|
12 |
|
---|
13 | %get max dof
|
---|
14 | for i=1:length(modelsname);
|
---|
15 | if ~strcmpi(modelsname,'analysis_type'),
|
---|
16 | if ~isempty(models.(modelsname{i}).nodesets),
|
---|
17 | dof=max(dof,models.(modelsname{i}).nodesets.fsize);
|
---|
18 | end
|
---|
19 | end
|
---|
20 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.