https://github.com/hasselmonians/mle_rhythmicity
Raw File
Tip revision: 7c50ba73fa34dbe2586fb0f9e0204bd1e28f3209 authored by jrclimer on 11 July 2016, 16:29:52 UTC
Resolves #7
Tip revision: 7c50ba7
passall.m
function [ varargout ] = passall( fun, args )
%PASSALL Passes all vector of values to a function
%   
% INPUT
%   fun: A function handle
%   args: Arguments of the function in a vector
%
% Written 2015-11-04 by Jason R. Climer (jason.r.climer@gmail.com)
if ~iscell(args), args = num2cell(args); end
varargout = cell(max(nargout,1),1);
[ varargout{:} ] = fun(args{:});

end

back to top