sortBlikeA(A,B)

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 (2024). 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
Categories
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

description update