evalmf
now takes a fismf
object as an input argument rather than the type and parameters of the membership
function. Also, you can now evaluate multiple membership functions by passing an
array of fismf
objects to evalmf
. There
are differences between these approaches that require updates to your code.
Update CodePreviously, you evaluated a membership function for given input values,
x
, by specifying the type of membership function,
type
, and the membership functions parameters,
params
.
Update your code to first create a fismf
object,
mf
. Then, pass this object to
evalmf
.
Also, previously, to evaluate multiple membership functions you called
evalmf
once for each membership function.
Now, you can evaluate multiple membership functions by passing an array of
fismf
objects to evalmf
.
Here, y = [y1 y2 y3]';