📄 strings2.m
字号:
function c = strings2 (a,b)
%----------------------------------------------------------------
% Usage: c = strings2 (a,b)
%
% Description: Contatinate string b to the end of string a
%
% Inputs: a = initial string
% b = string to add to the end of a
%
% Outputs: c = strings a and b contatinated
%
% Note: This is a Matlab 4.0 replacement for the strcat
% function in Matlab 5.0
%----------------------------------------------------------------
na = length (a);
nb = length (b);
c = a;
for i = 1 : nb
c(na+i) = b(i);
end
%----------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -