📄 str2mat.m
字号:
function s=str2mat(varargin)
%STR2MAT Form blank padded character matrix from strings.
% S = STR2MAT(T1,T2,T3,..) forms the matrix S containing the text
% strings T1,T2,T3,... as rows. Automatically pads each string with
% blanks in order to form a valid matrix. Each text parameter, Ti,
% can itself be a string matrix. This allows the creation of
% arbitrarily large string matrices. Empty strings are significant.
%
% STR2MAT differs from STRVCAT in that empty strings produce blank rows
% in the output. In STRVCAT, empty strings are ignored.
%
% STR2MAT is grandfathered. Use the CHAR function instead.
%
% See also CHAR, STRVCAT.
% Clay M. Thompson 3-20-91, 5-16-95
% Copyright 1984-2003 The MathWorks, Inc.
% $Revision: 5.23.4.2 $ $Date: 2004/04/10 23:32:51 $
s = char(varargin{:});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -