PFilters
Documentation about pfilters is in progress. Some examples:
% get directory listing --> cell array --> just names
pipe dir | num2cell | getfield([],'name')
% same, but store in variable and show
pipe g = dir | num2cell | getfield([],'name'); g
% borda count example
pipe x = [3 2 1 -1 10] | sort^2 | sort^2
% define pfilter and apply to single input
pfilter borda = sort^2 | sort^2
x = [3 2 1 -1 10] | borda
% ans: 4 3 2 1 5
% apply pfilter to vertical cell array
x = {[3 2 1 -1 10]; [10 8 6]; [1:5 0]} | borda
% change all m-files in dir pfilters and store them in pf
pfilter f = preadf | strrep([],'relative','rela') | pwritf([],'pf')
g = dirf('pfilters','*.m') | f