How to turn a matrix into a vector without using for loop !

2 ビュー (過去 30 日間)
daniel adams
daniel adams 2021 年 10 月 8 日
回答済み: Geoff Hayes 2021 年 10 月 8 日
Given a matrix is there a way in Matlab to construct a vector which is just the rows of M layed out one after the other? Note I don't want to use for loops.

採用された回答

Geoff Hayes
Geoff Hayes 2021 年 10 月 8 日
@daniel adams - try using reshape.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by