Converting matrix of rows to one row

12 ビュー (過去 30 日間)
vedesh Mohit
vedesh Mohit 2018 年 2 月 9 日
コメント済み: jenifer Ask 2019 年 12 月 29 日
I have to convert a matrix to a one row vector composed of all the rows of the original matrix. How can I do this? Thanks

採用された回答

KSSV
KSSV 2018 年 2 月 9 日
編集済み: KSSV 2018 年 2 月 9 日
A = rand(3) ; % A 3x3 matrix
A = A' ;
iwant = A(:)' ; % convert to vector
  1 件のコメント
jenifer Ask
jenifer Ask 2019 年 12 月 29 日
I have 6 images. In each, I have identified a number of different special points on which to extract the attributes. (Because of the different cell)
In the first image I have 15 matrices, 3 x 3. And so there are the number of special points in each matrix image.
First, I want to transform the individual matrices of each cell into vectors. Then paste them into their own rows.
I know a simple matrix can be transformed into a vector with (:). But I can't work with that many cells.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDenoising and Compression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by