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
Solution Comments
Show comments
Loading...
Problem Recent Solvers128
Suggested Problems
-
Return a list sorted by number of occurrences
2895 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3068 Solvers
-
441 Solvers
-
Element by element multiplication of two vectors
399 Solvers
-
Create an anti-identity matrix
202 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!
function needs one more input Vishal
I added two inputs (x,t) to the test suite.
@abdullah:thanks dude.
Test case seems wrong.
test case 1
...is fine.