%% Evaluate Transition Function
% Create a logistic threshold transitions at levels 0 and 5.

t = [0 5];
tt = threshold(t,Type="logistic");

% tt is a threshold object. By default, the rate of each logistic transition function is 1.
% Evaluate the transition function at a sequence of transition variable data from -10 to 10.

z = -10:0.01:10;
F = ttdata(tt,z);
size(F)

% F is a 2001-by-2 vector of transition function data.  Each column is the transition function data for the corresponding threshold in tt.Levels.
% Copyright 2020 The MathWorks, Inc.