I have two matrices, A = (1,2,3,4,5) and B = (6,8,14,12,11). I need to generate an array in which all the numbers between A(row,1) and B(row,1), A(row,2) and B(row,2), etc. are filled in. It should look like this: outputarray = (1,2,3,4,5,6,2,3,4,5,6,7,8,3,4,5,6,7,8,9,10,11,12,13,14…). So the numbers between 1 and 6 (the first cells of A and B) would get filled in and so on down the line.
MATLAB: Fill in sequential numbers between two numbers
arrayconsecutivecounteriteratesequential
Related Question
- [title removed]
- How to circular shift a matrix for every 1 to 6 elements until its end
- How to fill a vector with another ones
- Are there any functions that will return the index of the last string in a cell of strings
- Change numbering inside cell
- Find matching values in matrix B for multiple values in matrix A.
Best Answer