Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
If i have a function to generate two matrix?
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
If i have
for k=1:2
C1 = randi ([0 1],3,3);
C2 = randi ([0 1],3,3);
end
How can put the C1 and C2 in the same matrix like this
 Matrix = [{0 1 1;1 1 1; 0 1 1}, {1 1 1;0 1 1;1 0 1}, { 1 1 0 ; 1 0 1 ;0 0 1} , {0 1 1 ; 1 0 1 ; 1 1 0 }]
3 comentarios
  Image Analyst
      
      
 el 10 de Mayo de 2016
				What is the rule for inserting each matrix into the new output matrix?
Respuestas (1)
  Walter Roberson
      
      
 el 10 de Mayo de 2016
        Matrix = arrayfun(@(IDX) randi([0 1], 3, 3), 1:4, 'Uniform', 0);
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



