📅  最后修改于: 2022-03-11 14:56:13.231000             🧑  作者: Mango
代码示例1
vector= [1 2 3];
vector(end+1)= 4
%% result
% vector= [1 2 3 4];
matrix [1 2 3; 4 5 6; 7 8 9];
matrix(1:end;end+1)=[10; 10; 10]