Writing matrix into a dataset with a dynamic name

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Variables에 대해 자세히 알아보기

제품

질문:

sks
2013년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by