saving in different folders
Afficher commentaires plus anciens
Hi
This is a statement in a for loop
[f_estimate(i), freqconf(i), z_estimate(i), dampconf(i)]
How do I save each of the variables in different folders?
Réponse acceptée
Plus de réponses (1)
Ayush Kashyap
le 19 Juin 2023
0 votes
Hi Indrani,
As per my knowledge, you can utilize the "save" and "fullfile" functions provided by matlab inside your for loop as follows:
save(fullfile(<folder path>, ['f_estimate_' num2str(i) '.mat']), 'f_estimate', '-v7.3');
You can also refer to this documentation for more details: Matlab Save Function
Catégories
En savoir plus sur File Operations 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!