MATLAB: Is it possible to use a user defined function to be passed as an argument to the PULSTRAN function in the Signal Processing Toolbox 6.14 (R2010b)

Signal Processing Toolbox

I would like to pass a user defined function apart from the 3 available built in functions that can be passed as shown below:
y = pulstran(t,d,'func')
where 'func' is:
'gauspuls', for generating a Gaussian-modulated sinusoidal pulse
'rectpuls', for generating a sampled aperiodic rectangle
'tripuls', for generating a sampled aperiodic triangle

Best Answer

You can use the PULSTRAN function in MATLAB and pass a user defined function using a function handle from the syntax as explained in the source code of PULSTRAN function. To see the description about the same, please type the following line on your MATLAB command line:
edit pulstran
In line 16 of the MATLAB source code, this point is explained.