Validate an IMAT_FEM object
fem=validate(femin)
[fem,isvalid]=validate(femin,'silent')
[fem,isvalid,msg]=validate(femin)
VALIDATE checks the input objects to make sure they are valid, and returns the output in an imat_fem.
FEMIN is an imat_fem to validate.
Passing in the string 'silent' will suppress output.
FEM is an imat_fem containing the validated FEM. If none of the inputs are valid, FEM will be empty.
ISVALID is an optional output specifying whether the input data was a valid imat_fem.
If MSG is requested, it is a cell array of strings containing messages for what entities are not valid (empty if the object is valid). If not requested, VALIDATE will issue an error message.
>> fem=readunv('fem_file.unv')
fem =
IMAT_FEM Finite Element Model
1 coordinate system
527 nodes
675 elements
0 tracelines
>> fem=validate(fem)
fem =
IMAT_FEM Finite Element Model
1 coordinate system
527 nodes
675 elements
0 tracelines
>>