Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.40 KB | None | 0 0
  1. function Output = TableFill(x, y, Names, Order)
  2. figure('Name', 'Table filling');
  3.     Output = zeros(x, y);
  4.     tempo = uitable('Data',zeros(x ,y),...
  5.                             'ColumnName', Names, 'RowName', Order,...
  6.                             'ColumnEditable', true, 'DeleteFcn', @uiexport);  
  7.     waitfor(tempo);
  8.     function uiexport(src, ~)
  9.         Output = get(src, 'Data');
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement