0001 function [abcd, abcd_sum] = rithmaticker(a, b, c, d) 0002 0003 switch nargin 0004 case 1 0005 error('rithmaticker: need more input args'); 0006 case 2 0007 abcd = rithmaticker_timeser(a, b); 0008 abcd_sum = a + b; 0009 case 3 0010 abcd = rithmaticker_timeser(a, b, c); 0011 abcd_sum = a + b + c; 0012 case 4 0013 abcd = rithmaticker_timeser(a, b, c, d); 0014 abcd_sum = a + b + c + d; 0015 end