本文共 291 字,大约阅读时间需要 1 分钟。
自定义函数,函数为:
function vectorA = insertBIntoA(vectorA, location, vectorB)% 把向量vectorB插入到向量vectorA中,插入位置为location之后lenA = length(vectorA);lenB = length(vectorB);vectorA(location + lenB + 1 : lenA + lenB) = vectorA(location + 1 : lenA);vectorA(location + 1 : location + lenB) = vectorB(1 : lenB);
转载地址:http://rnzti.baihongyu.com/