disps.m

来自「实现地震勘探中」· M 代码 · 共 27 行

M
27
字号
function disps(string)% Display a string.% Checks the dimensions of the command window and wraps the string if it is too% long to be displayed in one line.%% Written by: E. R.: March 29, 2008% Last updated:%%          disps(string)% INPUT% string   string to display in the command window%% EXAMPLE%          disps(['Checks the dimensions of the command window and wraps ', ...%                'the string if it is too long to be displayed in ', ...%                'one line.'])%	Get the dimensions of the command windowdims=get(0,'CommandWindowSize');%	Wrap the input string and display itcstring=linewrap(string,dims(1));for ii=1:length(cstring)   disp(cstring{ii})end

⌨️ 快捷键说明

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