Feeds
已回答
Expand 1-D array to 2-D matrix using 'ones' function and colon ':'
Thanks to Daniel and Oleg! I was mostly confused with the role of ones(1,5) here, but came to realize how it works when I read ...
Expand 1-D array to 2-D matrix using 'ones' function and colon ':'
Thanks to Daniel and Oleg! I was mostly confused with the role of ones(1,5) here, but came to realize how it works when I read ...
14 years 前 | 0
提问
Expand 1-D array to 2-D matrix using 'ones' function and colon ':'
Example: matrixA = 6:10; matrixA = matrixA(ones(1,5), :); or: matrixB = (6:10)'; matrixB = matrixB(:, ones(1,...
14 years 前 | 3 个回答 | 0
