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中有这个3-D类型的数据,尺寸为(100,100,100)。我想重塑这些数据,以便我只想要维度 (100, 2:10,100) 的数据。我怎么能在matlab中做到这一点?
如果A是您的 100x100x100 矩阵,您可以使用:
A
B = A(:,2:10,:);
然后 B 是一个 100x9x100 矩阵,由 A 的相应条目的数据组成。