sortBlikeA(A,B)

sort array B, as the array A is sorted
25 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 (2026). sortBlikeA(A,B) (https://au.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
Categories
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers
Tags Add Tags
Version Published Release Notes
1.0.0.0

description update