Split 1x2 cells into two seperate "doubles"
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gustav Lönnblad
am 19 Okt. 2022
Bearbeitet: Voss
am 20 Okt. 2022
Hi! (MATLAB)
I have one cell with 1x62 and inside it 62 columns with 1x2 cells
{{1,-534},{2,-532},{3,534}.......
I and want to split them up into
[1,2,3,4....]
and
[534,-532,534....],
that is, first and second variable by them selves in a new cell.
Appreicate any kind of help, thanks :)
Akzeptierte Antwort
Voss
am 19 Okt. 2022
C = {{1,-534},{2,-532},{3,534}};
temp = vertcat(C{:})
A = [temp{:,1}]
B = [temp{:,2}]
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Encryption / Cryptography finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!