fixstrlen.m

来自「航天工程工具箱」· M 代码 · 共 7 行

M
7
字号
function y=fixstrlen(s,n)
% FIXSTRLEN
%   Adds extra spaces to a string.
%   FIXSTRLEN(S,N), where N defines the length of the output.

y=s;
y(end+1:n)=' ';

⌨️ 快捷键说明

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