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

1 view (last 30 days)
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 Comment
Dyuman Joshi
Dyuman Joshi on 26 Sep 2023
Why do you need to convert?
It would be much more efficient to use indexing to access the data.

Sign in to comment.

Accepted Answer

Torsten
Torsten on 26 Sep 2023
Edited: Torsten on 26 Sep 2023
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.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!