How do you trace all connected nonzero elements in a matrix in MATLAB?

后端 未结 0 1513
别那么骄傲
别那么骄傲 2020-11-27 10:10

Suppose I define the following simple matrix in MATLAB:

myImage3 = zeros(10,10);
for i=1:10
    for j=i:2:10
        myImage3(i,j) = 20;
    end
end


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题