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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by