function [sum, prod] = myFunc(a,b) %myFunc returns sum and product of two number % % consumes: two numbers, a and b % produces: their sum and their product % % Examples: % %>> myFunc(3,6) %ans = % 9 %>> [theSum, theProd] = myFunc(3, 4) %theSum = % 7 %theProd = % 12 %>> [x , y ] = myFunc(5,7) %x = % 12 %y = % 35 % % P. Conrad for CISC106, Sect 99, 10/12/2007 sum = a+b; prod = a * b; return; end