Feeds
已回答
如何给Cell中的每个元素reshape(不想用for)。
用 cellfun 可以实现, 举个例子把: A = {rand(1,9),rand(1,9),rand(1,9)} cellfun(@(x) reshape(x, 3, 3).', A, 'UniformOutput', false)
如何给Cell中的每个元素reshape(不想用for)。
用 cellfun 可以实现, 举个例子把: A = {rand(1,9),rand(1,9),rand(1,9)} cellfun(@(x) reshape(x, 3, 3).', A, 'UniformOutput', false)
3 years 前 | 0
| 已接受

