title: summing and multiplying the rows and putting them into two extra columns
body: <p>i take an input matrix and add two more columns to it. i'll have the sums of the rows in the first extra column and the product of the rows in the second extra column.
  but an unexpected error is stopping me...please help.thanks</p>
  
  <pre><code>clc;
  clear all;
  
  prompt = ' enter row ';
  
  row = input( prompt );
  
  prompt = ' enter column ';
  
  column = input( prompt );
  
  z = zeros( row, column );
  
  prompt = 'enter matrix';
  
  z = input( '' );
  
  display( z );
  
  z1= zeros( row, column + 2 );
  
  for r = 1:row
  
         for c = 1:column
          z1( r,c ) = z( r,c );
      end
  end
  
  display( z1 );
  
  for s = 1:row
  
        z1( s,column + 1 ) = sum( z,2 );
        z1( s,column + 2 ) = prod( z,2 );
  end
  
  display( z1 );
  </code></pre>