SOM Toolbox Online documentation http://www.cis.hut.fi/projects/somtoolbox/

som_table_modify

sT = som_table_modify(sT,action,arg1,arg2,arg3)

SOM_TABLE_MODIFY Modify table: add or remove columns or rows.
  
 sTable = som_table_modify(sTable,action,arg1,[arg2],[arg3])
 
  Input and output arguments ([]'s are optional): 
   sTable      (struct) table struct
   action      (string) action id (see below).
   arg1        (varies) Depending on action, 1 to 3 arguments
   [arg2]      (varies) are needed. See below.
   [arg3]      (varies) 

   sTable      (struct) the modified table struct

  Actions and their arguments:
   'addcol'    Add one or several new columns.
               arg1 (cell array) new values
                    (char)       new values (a single column can be given)
                    (matrix)     new values
               arg2 (cell array) new headers
               arg3 (scalar)     at which position the new columns 
                                 should be inserted (at the end by default)
   'addrow'    Add one or several new rows.
               arg1 (cell array) new values
                    (char)       new values (a single row can be given)
                    (matrix)     new values
               arg2 (scalar)     at which position the new rows 
                                 should be inserted (at the end by default)
   'removecol' Remove one or several columns.           
               arg1 (vector)     indeces of columns to be removed
   'removerow' Remove one or several rows.           
               arg1 (vector)     indeces of rows to be removed
 
 See also  SOM_TABLE_STRUCT, SOM_TABLE_PRINT.



[ SOM Toolbox online doc ]