a = 'c';
b = {3,4};
eval([a,'=b;']) % a是字符串
>>> c =
{[3]} , {[4]}
matlab字符串做变量名
最新推荐文章于 2023-07-04 16:44:15 发布
a = 'c';
b = {3,4};
eval([a,'=b;']) % a是字符串
>>> c =
{[3]} , {[4]}