Suggest methods to form a Matrix after deleting one of the input's elements. Input should be element's position and output should be the reduced matrix.
For example:
X = [1 2 4 2 3 1 2 2 4 5]
after giving input as t=3 output should be the new matrix which contains all the elements of X (same order) but the third element.
Hence output will be
[1 2 2 3 1 2 2 4 5]
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers82
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15799 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3068 Solvers
-
945 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
400 Solvers
-
502 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This problem needs a test suite
Yes, Ujjwal: you must define well the test cases.
I added two simple tests.