Problem 2357. Sort the vector with the given index
Given x = [1 2 4 8 17] and
t = [1 3 2 5 4]
then y = [1 4 2 17 8].
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Abdullah Caliskan
on 11 Jun 2014
function needs one more input Vishal
Ned Gulley
on 12 Jun 2014
I added two inputs (x,t) to the test suite.
Vishal
on 18 Jun 2014
@abdullah:thanks dude.
Tahmina Tabassum Treena
on 24 Jan 2021
Test case seems wrong.
mahesh kumar
on 4 Feb 2021
test case 1
goc3
on 4 Feb 2021
...is fine.
Solution Comments
Show commentsProblem Recent Solvers122
Suggested Problems
-
571 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
382 Solvers
-
Create a two dimensional zero matrix
496 Solvers
-
Find the square of the sum of the digits of a number
156 Solvers
-
Cumulative product of a vector
285 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!