function out = Tanvismembershipfunction(x, params) for i=1:length(x) if x(i)<params(1) y(i)= 2 * abs(x(i) - 0.5); elseif x(i)<params(2) y(i)= 2 * abs(x(i) - 0.5); else x(i)<params(3) y(i)= 2 * abs(x(i) - 0.5); end out=.1*y'; % scaling the output to lie between 0 and 1
MATLAB: What correction need in this..? for fuzzy
fuzzymembership functionparameters
Best Answer