How to make a longer vector by adding an additional element between neighboring elements in the original vector. Each new element should equal the average of its neighboring elements. x = [0 2 3 2 1 -1]
MATLAB: Enlarge vector by putting average of surrounding numbers in between of every number of original vector
MATLAB
Related Question
- How to create permutations of multisets
- How do you convert numbers to percentages
- How to count the number of 1 after every element of the vector
- How to read a txt file having alphanumeric data and special characters. ? My text file is like this. I tried textread but could not get a result. any suggestion.
- I have a set of second order differential nonlinear equation and I want to solve them together with ode45, how could I write codes for them?or better to say I want to define state transition function for such equations.
- Help with the matrix creation pls ? if possible not a hardcoded solution but a function .
Best Answer