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

조회 수: 3 (최근 30일)
Abdul Nafey
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
Dyuman Joshi
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.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by