From: Sergio on
Hi all,
can someone tell me if it's possible to insert avariable as a parameter of a membership function? I'd have to set external bounds of some membership function depending on external conditions. My membership function look like this

[Input4]
Name='dnfz'
Range=[0 1439]
NumMFs=5
MF1='n':'gauss2mf',[109.8 -300.2 30 time_fz(1)]
MF2='d':'gauss2mf',[30 time_fz(3) 30 time_fz(4)]
MF3='sr':'gaussmf',[46.69 time_fz(2)]
MF4='ss':'gaussmf',[46.7 time_fz(5)]
MF5='n':'gauss2mf',[30 time_fz(6) 197 1638]

when i try to read or open it, i receive this error

??? Error using ==> eval
Undefined function or method 'time_fz' for input arguments of type
'double'.

Error in ==> readfis at 151
MFParams=eval(MFStr((typeEnd+1):length(MFStr)));

and time_fz is defined in workspace. I also tried to change time_fz from douvle to single but result is the same.

Thx in advance