# How can I convert a 666by3 matrix into 666 row matrices?

조회 수: 3 (최근 30일)
Abdul Nafey . 2023년 9월 26일
댓글: Dyuman Joshi . 2023년 9월 26일
I have a matrix that is taking the lidar data. Now the matrix contains 666 rows and 3 columns. I want to further process this data and for that I need to convert it into 666 rows matrices with 3 columns each. Can anyone help me out with it as I am just a beginner and not very good with MATLAB.
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Dyuman Joshi 2023년 9월 26일
Why do you need to convert?
It would be much more efficient to use indexing to access the data.

댓글을 달려면 로그인하십시오.

### 채택된 답변

Torsten 2023년 9월 26일
편집: Torsten 님. 2023년 9월 26일
If M is your 666x3 matrix, then Mi = M(i,:) is the i-th row of M and is of size 1x3. You don't need the conversion to 666 1x3 vectors.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by