Converting 4D matrix to 2D
2 次查看(过去 30 天)
显示 更早的评论
I'm extracting features from pre-trained CNNs. The size of the extracted feature matrix is in 4-D. The extracted features are then used to train a linear classifier. The extracted features have dimensions (1,1,1024,200) (in general m,n,p,q) where 1024 is the dimension of the features and 200 is the number of images. I'd like to extract only the p and q components,leaving behind the first and second dimensions. I tried to use Squeeze function but it doesn't help. Kindly help me with the syntax to obtain only the 2-dimensions (i.e.)(1024,200).
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!