Learn how to insert additional values into a vector in MATLAB. When working with an existing data set of any size, you may encounter a scenario that requires you to insert values into an existing vector. With the use of logical indexing, also known as conditional data indexing, you can easily insert values into an existing vector.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.