Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

how to take out two random equal column in different matrix

1 view (last 30 days)
i have two different matrix and one 10*10 environment which it generate nodes randomly and put the coordinates of nodes inside the both matrix the dimension of matrixes are N(2,n) and M(2,n),how can i command that in matlab like this example
size=1
while size<n
if M(1,size)=N(1,size); M(2,size)=N(1,size);
Reach=1; ReachG=size; break
end
end

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!