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 }
2 番目の質問がよくわかりません。元の画像に対して行った操作によって異なります。