show all possible combination
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
soni
el 3 de Oct. de 2014
Comentada: soni
el 3 de Oct. de 2014
dear all.
combination(28,4) is 20475. then how to show all of the 20475 combination. n the output matlab is notpad (dat or txt). i use matlab 2012a.
- sorry, my englis is not good.
Respuesta aceptada
José-Luis
el 3 de Oct. de 2014
Editada: José-Luis
el 3 de Oct. de 2014
C = nchoosek(1:28,4);
To save please read the documentation on save
doc save %-ascii option
Alternatively
doc dlmwrite
Please accept the answer that best solves your problem.
3 comentarios
José-Luis
el 3 de Oct. de 2014
vals = [0 1 2 3 4 5 6 2 3 4 5 6 7 4 5 6 7 8 6 7 8 9 8 9 10 10 11 12];
result = vals(C);
Más respuestas (0)
Ver también
Categorías
Más información sobre LaTeX en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!