How to arrange array in new order in matlab

Use the second return value of sort to reorder your e array.

[d, order] = sort(d);
e = e(order);

猜你喜欢

转载自blog.csdn.net/colddie/article/details/80603475