Iteratively rename a .txt using writematrix
Afficher commentaires plus anciens
Hello everybody,
I have created the following array:
substrates={'MgO' 'SiO2' 'W' 'Al2O3' 'Sapphire'};
What I want to do is, after calculating an array within a for loop for each "substrates" element, i=1:length(substrates), save it in .txt using the writematrix function. I have tried something like:
writematrix(matrix,'C:\Users\...\Matrix_',substrates{i},'_Substrate.txt','Delimiter','space')
But it doesn't work, telling me the error that "MgO" is an invalid parameter name.
Any ideas?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Standard File Formats dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!