Hi everybody could anyone help me in my problem: i have an array with known missed values in known places . I want to insert these values in the specified positions and do it for many arrays. Example a=[2 4 6 3 3 5 3 4 1 0 0 0 0] Li=[2 8 10 12] %locations of values in array Val=[6 7 8 9] Solution should be Sol=[2 6 4 6 3 3 5 7 3 8 4 9 1] Also how to apply this in for loop for multiple arrays Thanks in advance
MATLAB: Insert missing values in specified positions and use for loop
for loopinsert
Related Question
- I have a matrix of 5 rows and 3 columns and i want to select only 1st 3rd and 4th row with all column using an array how to do it?whats the script
- Divide an array in n different arrays
- How to delete rows from a matrix when the values of certain columns are equal
- Is it possible to extract the values with a vector of indices for each row without using the for statement from the matrix
- How to calculate the mean of the elements values of the array according to objects of the other array.
Best Answer