How can I create this matrix?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Risposta accettata
  Stephen23
      
      
 il 4 Ago 2021
        n = 5;
r = 2:5;
F = @(k)any(permute(nchoosek(1:n,k),[3,1,2])==(1:n).',3);
M = cell2mat(arrayfun(F,r,'uni',0))
4 Commenti
  Walter Roberson
      
      
 il 19 Ago 2021
				You might be able to fit the 50 case. Change to
F = @(k)any(permute(nchoosek(uint8(1:n),k),[3,1,2])==uint8(1:n).',3);
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Spline Postprocessing in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





