Matlab将字符串改成变量名-eval
clc;clear ii=1 p1 = [1 2;3 4] str = ['p',num2str(ii)] str2 = eval(str) aaa = str2 + 5 whos
本文来自博客园,作者:xdd1997
转载请注明:https://www.cnblogs.com/xdd1997/p/15140935.html
clc;clear ii=1 p1 = [1 2;3 4] str = ['p',num2str(ii)] str2 = eval(str) aaa = str2 + 5 whos
本文来自博客园,作者:xdd1997
转载请注明:https://www.cnblogs.com/xdd1997/p/15140935.html