Permutations from two sets of files
Mostrar comentarios más antiguos
HI, i am totally new to matlab i hope someone can help me achieving this. i have to text files, with a list of items ( long lists ), i want to read those lists in matlab, make a permuation between then, and save the result in new file.
exemple :

Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 9 de Nov. de 2014
a={1;2;3;4}
b={'A';'B';'C'}
[ii,jj]=ndgrid(1:numel(a),1:numel(b))
out=cellfun(@(x,y) [num2str(x) '-' y ],a(ii(:)),b(jj(:)),'un',0)
3 comentarios
mounim
el 9 de Nov. de 2014
Azzi Abdelmalek
el 9 de Nov. de 2014
What part of the code is manual?
Categorías
Más información sobre Large Files and Big Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!