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 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