how to rearrage the matrix?

1 Ansicht (letzte 30 Tage)
vimal kumar chawda
vimal kumar chawda am 28 Mai 2021
Kommentiert: Fangjun Jiang am 28 Mai 2021
I have 4*3 table data and I want want to rearragne in only one column.
Like [objectpointsepoch1(:,2) objectpointsepoch1(:,3)] but its 2*3 I need the 6*1 matrix.
  1 Kommentar
vimal kumar chawda
vimal kumar chawda am 28 Mai 2021
I need like this as 2nd column is x1 to s4 and 3rd column is y1 to y4. So I need it as image shown.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 28 Mai 2021
[objectpointsepoch1(:,2); objectpointsepoch1(:,3)]
  7 Kommentare
vimal kumar chawda
vimal kumar chawda am 28 Mai 2021
Thnak you it works. Can you please explain it so I can apply it in future?
1- Why we used {} type of brackes insted of () type of brackets?
2- What is means 8 and []? Can you say something so I can play with it?
Btw thank you
Fangjun Jiang
Fangjun Jiang am 28 Mai 2021
see examples in
doc table
doc reshape

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing 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