vecInsert.m

vecInsert(elemToInsert,position,vecIn) Insert elements into a vector at given positions
888.0 次下载
更新时间 2008/10/30

查看许可证

Works with 1xn and nx1 vectors.

Inserts a vector of elements into the given positions. elemToInsert is a
vector that can be as small as 1 element and as large as desired.
Position is an array of positions that can be as small as one element and
as large as the number of elements you wish to insert.

If position is smaller than the number of elements, this function will
assume that the remaining elements will be inserted sequentially.

If position is larger than the number of elements, this function will insert the
last element of elemToInsert at the remaining given positions.

引用格式

Michael Stachowsky (2024). vecInsert.m (https://www.mathworks.com/matlabcentral/fileexchange/21948-vecinsert-m), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Strategy & Logic 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0