title: How to delete selected rows in uitable?
body: <p>I'd like to delete selected rows of an uitable.
  I thought about using a checkbox for every row to select which one I want to delete.</p>
  
  <p>But I can not add a column to a table with checkbox Set to false.  </p>
  
  <p>I get this follow error</p>
  
  <pre><code>??? Conversion to cell from logical is not possible.
  
  Error in ==&gt; loadTable at 7
      data(:,5) = true;
  </code></pre>
  
  <p>I tried with this: </p>
  
  <pre><code> function loadTable(hTable, arrayHeaderAndData, columnFormatAtt)
  
          header = arrayHeaderAndData{1};
          % Add column delete
          header = [header 'Del'];
          data = arrayHeaderAndData{2};
          data(:,5) = true;
          columnFormatCases = [columnFormatCases 'logical'];
  
          set(hTable, 'Data',data,...
              'visible','on',...
              'ColumnWidth','auto',...
              'ColumnName',header,...
              'ColumnEditable', [false false false false],...
              'ColumnFormat', columnFormatAtt
      );
  
  
      end
  </code></pre>
  
  <p>Then I need to delete all rows with selected checkboxes from table. How can I do that?</p>