Assigning values in an array (1 array with x coords, 1 array with Y coords.. how to create an array to contain both?)
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Misha Patel
am 3 Jul. 2017
Beantwortet: Guillaume
am 3 Jul. 2017
I have X=cell(3,1) and Y=cell(3,1) that contain various values. I have created coordinates=cell(3,2)... how do I assigne the X values into the first column and the Y values into the second column?
0 Kommentare
Akzeptierte Antwort
Guillaume
am 3 Jul. 2017
coordinates = [X, Y];
No point in creating the coordinates cell array, the way you've done it as it'll be erased and replaced by the above.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operators and Elementary Operations 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!