Array Aをソートしそれに合わせArray Bの順序を入れ換える
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Takashi KOSHIMIZU
el 5 de En. de 2019
Comentada: Kazuya
el 7 de En. de 2019
A = [2 4 5], B = [1.2 0.7 0.1]と与えられた2つのarrayが有ります。
Bは有る関数を元に、Aから生成された値です。
Bを昇順にsortし(結果[0.1 0.7 1.2]となる)、それに合わせarray-A要素順序を並び替える為の手順(code)を教えて下さい。
Aの並びは、[5 4 2]となるMatlabのcoding手法をお伺いしています。
0 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!