How to convert matrices in a unique cell
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hi, I have several matrices in my workspace and I want to put them inside of unique cell. How can I do this?
0 Kommentare
Akzeptierte Antwort
  Andrei Bobrov
      
      
 am 16 Sep. 2011
        Your matrix A and B
C = {A, B}
variant for 100 matrixes
vars = whos;
c=cell(numel(vars),1);
for j1=1:numel(c),c{j1} = eval(vars{j1}); end
2 Kommentare
  Walter Roberson
      
      
 am 16 Sep. 2011
				See http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Data Types finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!