Posts Tagged ‘varargin’

February 10, 2014 0

Matlab: calling a function handle with parameters from a cell array

By in matlab

Having a function handle sometimes means that you want to be flexible regarding the number of input arguments. having a function handle fhandle=@plot means that you can call fhandle() but is you want to pass a variable number of arguments to fhandle that resides in a cell array, cparameters, containing e.g.: cparameters={[1:10],’resize’,’no’} you can do: […]

Tags: , , ,