How can I add a fixed interval to a set of data?
Ältere Kommentare anzeigen
I have a vector with N numbers, the vector has downward/upward/downward trend (comes from a set of data). :
A=[4 3 1 0 1 2 5....]
I want to add some extra data (missing ones) to my vector, with interval of 1,for example:
B=[4 3 2 1 0 2 3 4 5 ...]
How can I obtain vector B from vector A?
1 Kommentar
Jan
am 10 Nov. 2015
I assume, you mean:
B=[4 3 2 1 0 *1* 2 3 4 5 ...]
Akzeptierte Antwort
Weitere Antworten (1)
Amin Gan
am 10 Nov. 2015
0 Stimmen
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!