Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
两者都与 MATLAB 相关
要回答您调用的第一个问题logical,然后mat2cell获取逻辑单元格数组。例如:
logical
mat2cell
x = [1 3 4 5 0 1]; mat2cell(logical(x)', [1,1,1,1]) ans = { [1,1] = 1 [2,1] = 1 [3,1] = 1 [4,1] = 1 [5,1] = 0 [6,1] = 1 }
我不确定我是否理解你的第二个问题。这取决于您对原始图像所做的操作。