如何自动读取变量。

조회 수: 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!