⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 append_array.m

📁 CheckMate is a MATLAB-based tool for modeling, simulating and investigating properties of hybrid dyn
💻 M
字号:
function A = append_array(A,B)

% Append a 1-dimensional `cell array` to another 1-dimensional cell array
%
% Syntax:
%   "A = append_array(A,B)"
%
% Description:
%   Appends the content of the 1-dimensional cell array "B" to the
%   1-dimensional cell array "A" and return the resulting cell array in the
%   output variable.
%
% Example:
%   
%   * Suppose "A = {'a' 'b' 'c'}" and "B = {'d' 'e'}"
%
%   * "append_array(A,B)" gives "{'a' 'b' 'c' 'd' 'e'}"

NA = length(A);
for k = 1:length(B)
  A{NA+k} = B{k};
end
return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -