Store matices in .xls files
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    pavlos
      
 il 23 Dic 2017
  
    
    
    
    
    Risposto: Walter Roberson
      
      
 il 23 Dic 2017
            Hello,
Please help me with the following:
After an execution of an algorithm, 3 matrices are created and stored in a cell matrix C:
C{1} 30x10
C{2} 10x10
C{3} 40x10
Another execution of the algorithm, creates another number of matrices, e.g. 5 and stored in C again.
I need to create different .xls files with xlswrite where each .xls file contains 1 matrix from the above.
The number of output matrices prior to the execution of the algorithm is known (i.e. 3, 5, etc.).
Thank you.
Best,
Pavlos
0 Commenti
Risposta accettata
  Walter Roberson
      
      
 il 23 Dic 2017
        num_C = length(C);
for Cidx = 1 : num_C
  filename = sprintf('output_%03d.xls', Cidx);
  xlswrite(filename, C{Cidx});
end
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Matrices and Arrays 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!

