display.m

来自「it is a matlab file foe develop SLAM loc」· M 代码 · 共 20 行

M
20
字号
%DISPLAY Display method for differential drive robot object.%   DISPLAY(R) displays the differential drive robot object R.%% See also ROBOTDD.% Copyright (c) 2004, CAS-KTH. See licence file for more info.% v.1.0, Nov. 2003, Kai Arrasfunction display(r);display(r.robot);if size(r.x) == [1 3], x = r.x'; else x = r.x; end;xr = num2str(x);Cr = num2str(r.C);disp(sprintf('  x = %s       C = %s', xr(1,:), Cr(1,:)));disp(sprintf('      %s           %s', xr(2,:), Cr(2,:)));disp(sprintf('      %s           %s', xr(3,:), Cr(3,:)));disp(sprintf('  rl = %s', num2str(r.rl)));disp(sprintf('  rr = %s', num2str(r.rr)));disp(sprintf('  b  = %s', num2str(r.b)));

⌨️ 快捷键说明

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