如何自动读取变量。

2 次查看(过去 30 天)
yegmjmr
yegmjmr 2023-5-21
回答: jtugxjb 2023-5-21
我用eval生成多个变量,如A1,A2。。。A100,请问如何去自动去读这些变量?
用['A' num2str(i)]做循环后产生的只是字符串‘A1’,‘A2’等,并不能读出这些变量,求助!

采纳的回答

jtugxjb
jtugxjb 2023-5-21
继续用eval啊,eval(['A' num2str(i)]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 变量 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!