y=cellfun(func,x,varargin)| Inputs | |
func |
a function handle or the name of a function. |
x |
a cell array |
varargin |
a set of arguments that are passed on to func . |
| Outputs | |
y |
A numeric array of same size as x with y[i]=func(x{i},varargin)
|
>>cellfun(@sin,{2,3,4})
[0.9093 ] [0.1411 ] [-0.7568 ]