Writing matrix into a dataset with a dynamic name

7 vues (au cours des 30 derniers jours)
sks
sks le 8 Juil 2013
I am writing several matrices into a dataset, but would like to change the name dynamically. How can I save whatever comes from the eval function into results.(v)
for i=1:2
v=genvarname('Group',who);
eval([v '= function(x(i),y(i))];')
results.(v) = results from eval
end

Réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by