Convert a 3 variable array to a 2 variable array
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anson Hancock
am 11 Aug. 2015
Bearbeitet: Matt J
am 11 Aug. 2015
I have a 2x25x11 array of x,y coordinates for tracked points through an image sequence (11 total points in all). I want to convert this to a 22x11 double where, for each pair of columns, the even number column = the x coordinate of the point and the odd number column = the y coordinate of the point. When I have used the transpose function on a single point I get the desired result
example: transpose(a(:,:,1))
But otherwise I have been unable to get this result in one go for the entire array. Any help would be greatly appreciated. Let me know if you need any clarification or additional info.
3 Kommentare
Star Strider
am 11 Aug. 2015
Your array is 2 rows by 25 columns by 11 ‘pages’.
How do you want to map the (2x25) into 22?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion 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!