sortBlikeA(A,B)

version 1.0.0.0 (86 Bytes) by Pramit Biswas
sort array B, as the array A is sorted

23 Downloads

Updated 7 Feb 2018

View License

Ex: sortBlikeA ( [31 53 42 20 15] , [4 8 5 9 1] )
ans =
5 9 8 4 1
Note: tested only for 1D array

Cite As

Pramit Biswas (2022). sortBlikeA(A,B) (https://www.mathworks.com/matlabcentral/fileexchange/65917-sortblikea-a-b), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!