Can I generate list [1 2 3 2 3 4 3 4 5 4 5 6 ….] without for loop?

Thanks!

Skip to content# MATLAB: List(Vecor) Generation

###### Related Question

list generation

Can I generate list [1 2 3 2 3 4 3 4 5 4 5 6 ….] without for loop?

Thanks!

- How to get all entries of the lower triangular (simplex) of a tensor with arbitrary dimension
- How to combine this functions and plot it
- Weird behavior of modulo function
- Generation of a matrix based on a defined order of numbers
- Convert time from 24 hours format to HH:MM
- How to plot through a histogram the random number generated by matlab.I want to use just rand function.The output of the function is n*m matrix.
- Replacing each array element with a series of values

## Best Answer