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

2 Ansichten (letzte 30 Tage)
Abdul Nafey
Abdul Nafey am 26 Sep. 2023
Kommentiert: Dyuman Joshi am 26 Sep. 2023
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 Kommentar
Dyuman Joshi
Dyuman Joshi am 26 Sep. 2023
Why do you need to convert?
It would be much more efficient to use indexing to access the data.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Torsten
Torsten am 26 Sep. 2023
Bearbeitet: Torsten am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by