Build a matrix from matrix in a cell array

I want to build a matrix from the first row in each matrix from a cell array
To take the first row from each cell array (10*6) [The first row 6 values] and build a matrix from the first rows in 47 cells
to be 6 rows x 47 mixes and for loop for the other rows ( second row and third, ... etc) to be built

 采纳的回答

load(websave('t','https://www.mathworks.com/matlabcentral/answers/uploaded_files/570494/RT-4.4-Dprony.mat'))
M=cat(3,K_4{:});
result=squeeze(M(1,:,:)); whos result
Name Size Bytes Class Attributes result 6x47 2256 double

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息

产品

版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by