setfields.m File Reference

Set the name of functions for the domain. More...

Functions

function struct s = setfields (struct s, field_names,cellstr values,function_handle cond)
 Set the name of functions for the domain. More...
 

Detailed Description

Set the name of functions for the domain.

Function Documentation

◆ setfields()

function struct s = setfields ( struct  s,
  field_names,
cellstr  values,
function_handle  cond 
)

Set the name of functions for the domain.

The usage is similar to set/get function of matlab.mixin.SetGet class.

Author
ayonga
Date
2016-12-01
See also
matlab.mixin.SetGet
Parameters
sa structure
valuesfields values
conda validating condition for values
fieldsa string or cellstr of structure fields