Hi suppose I have two variable

idx1=

1

2

3

idx2=

4

5

I need to have a third variable idx3 where idx3=

1

2

3

4

5

NB. idx1 and idx2 are linear indices and idx3 is the indices having all idx1 and idx2

Skip to content# MATLAB: Adding values in array

###### Related Question

index

Hi suppose I have two variable

idx1=

1

2

3

idx2=

4

5

I need to have a third variable idx3 where idx3=

1

2

3

4

5

NB. idx1 and idx2 are linear indices and idx3 is the indices having all idx1 and idx2

- Replace an array with another array
- Detect parts of a 0/1 (binary) vector consisting of only 0 or 1
- How to index a sorted array with the actual array
- Iterations on field conditions of a structure array
- Search an array and find the row and column number of a certain element
- Taking difference of adjecent elements by seting a custom order

## Best Answer