display.m

来自「这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输」· M 代码 · 共 28 行

M
28
字号
function display(f)%DISPLAY Displays the CSINE objects data.%   DISPLAY(f) displays the objects data.  It is automatically called from%   when the object is entered in the command window without terminating semicolon.%%   See also CSINE% Jordan Rosenthal, 03-Nov-1999
%             Rev., 26-Oct-2000 Revised comments

if isequal(get(0,'FormatSpacing'),'compact')
   disp([inputname(1), ' = ']);
   dispf(f);
else
   disp(' ');
   disp([inputname(1), ' = ']);
   disp(' ');
   dispf(f);
end

function dispf(f)
s = formulastring(f);
s = strrep(s,'\rm','');
s = strrep(s,'\it','');
s = strrep(s,'\pi',' pi ');
for i = 1:2
   disp(['   ' s{i}]);
end

⌨️ 快捷键说明

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