Hi, when I test your function without argument, it keeps output error like below:
>> roc
Error using fittype/subsref (line 16)
Cannot access fields of fittype using . notation
Error in fit>params2var (line 65)
evalStr = sprintf('tmp = params.%s;',freeList{i});
Error in fit (line 34)
vars = params2var(params,freeList);
Error in roc (line 156)
cfit = fit(xroc,yroc,ft_,fo_);
I'm using Matlab R2012a. Could you give me some suggestion.
Thanks
Comment only