Print an array of coordinates with 2 Arrays of Varriables.
8 views (last 30 days)
Show older comments
I have two Arrays of multiple numbers lets call it X and Y. I Need to make another array of numbers displayed as cordinates. So let's say that X[150 200 300 500] and Y[300 500 800 300] I need an array like [150,300 200,500 300,800 500,300]. the purpose is then to copy the data and paste to Autacad to make a polyline. Is there a simple way to do this ? I appriciate any kind of help.
0 Comments
Accepted Answer
Michael
on 2 Jun 2021
Simple in Matlab
X = [150 200 300 500]';
Y = [300 500 800 300]';
coords = [X,Y]
coords =
150 300
200 500
300 800
500 300
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!