A = zeros(N1,N2,N3);
% real_height is N1 x N2 matrix
for ite1 = 1:N1
for ite2 = 1:N2
for ite3 = 1:max_max_height
A(ite1,ite2,1:real_height(ite1,ite2)) = 1;
end
end
end
多谢!
※ 修改:·novicer 于 Nov 22 11:40:40 2023 修改本文·[FROM: 36.113.64.*]
※ 来源:·水木社区
http://www.mysmth.net·[FROM: 36.113.64.*]
修改:novicer FROM 36.113.64.*
FROM 36.113.64.*