Advertisement
delimag

Populate uitable MatLab

Aug 29th, 2014
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.34 KB | None | 0 0
  1. % Popular componente uitable1 com arquivos pegos pelo for
  2. nomeDir  = uigetdir();
  3. listaDir = strcat(nomeDir, '/*.jpg');
  4. arquivos = dir(listaDir);
  5. tam      = length(arquivos);
  6.  
  7. for l = 1: tam
  8.    nomeImg = arquivos(l, 1).name;
  9.    path    = strcat(nomeDir, '/', nomeImg);
  10.    % display(path);
  11.    set(handles.uitable1, 'String', path);
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement