arrays - Connecting points in matlab -


i working in matlab , have 2 arrays following points

qazx = 5   5        6   47        7   38        8   29        9   10        10  31  qazy = 15    16        16    57        17    28        18    49        19    30        20    25 

i want connect 2 arrays. example want line between (5,5) , (15,16), , separate line (6,47) (16,57) , on.

i have tried following code none seem work. appreciated.

    plot(qazx,qazy)      plot(qazx(:,1),qazx(:,2),qazy(:,1),qazy(:,2))      plot([qazx(:,1),qazy(:,1)],[qazx(:,2),qazy(:,2)]) 

you close:

plot([qazx(:,1),qazy(:,1)]',[qazx(:,2),qazy(:,2)]') 

enter image description here


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -