这段代码的目标是将vm的每个值与Y中的相应值相关联。
values = zeros(5090,1000);
for i = 1:1000
voltFile_number = i;
vm = grab3dVoltPG(voltpath, voltFile_number);
%go to 2D, grab the point to find in 2D
for q = 1:2
for j = 1:5090
Ind = sub2ind(size(Y), j, q);
for k =1:10180
values(j,i) = Y(k);
end
end
end
end
它始终从vm或Y中拉出一个值(相同的值)来填充值。