以下代码不可行
clc
clear
close all
A = struct();
A.i = 1;
A.min = 1;
A.max = 10;
%ff = A.i;%必须要这句
for A.i =A.min:A.max
ww = 1
end
以下代码可行
clc
clear
close all
A = struct();
A.i = 1;
A.min = 1;
A.max = 10;
ff = A.i;%必须要这句
% for A.i =A.min:A.max
% ww = 1
% end
for ff =A.min:A.max
ww = 1
end