sortBlikeA(A,B)

sort array B, as the array A is sorted

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/65917-sortblikea-a-b), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

description update