the summation of the product of two terms can be expressed as the product of two vectors
ps. surf :plot 3-d mesh surf(a,b,c) c's coloum=a's length and c'rows=b'length