I have a matrix A=[3 8 13 18], i=4 and another one B=[5.5 10.5 15.5], j=3. Would like to get the code to create the matrix C from A and B so C=[3 5.5 8 10.5 13 15.5 18], k=7

# MATLAB: Insert numbers of a matrix B in matrix A (only in odd indexes).

insetMATLABmatrix

###### Related Question

- How to rearrange an array ? (only unique numbers in a column)
- Doesn’t calculate the integral (only int sign is added)
- ‘Matlab Coder’ generated code is NEVER of double type (only real_T)
- How to change the font size in a plot (only for the axes numbers)
- How to plot pixel trand intesity over time (only Red channel) from a Video

## Best Answer