📄 disps.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -