Sort the vector with the given index - MATLAB Cody - MATLAB Central

Problem 2357. Sort the vector with the given index

Difficulty:Rate

Given x = [1 2 4 8 17] and

t = [1 3 2 5 4]

then y = [1 4 2 17 8].

Solution Stats

71.96% Correct | 28.04% Incorrect
Last Solution submitted on Aug 20, 2025

Problem Comments

Solution Comments

Show comments
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
0
AI Is Transforming Engineering Workflows
It’s an honor to deliver the keynote at MATLAB EXPO 2025. I'll...
1

Problem Recent Solvers124

Suggested Problems

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!