⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check2.m

📁 Robotics TOOLBOX The Toolbox provides many functions that are useful in robotics including such thi
💻 M
字号:
%CHECK2 script to compare M-file and MEX-file versions of RNEfunction check2(robot, n, args)	robot = nofriction(robot, 'coulomb');	% create random points in state space	q = rand(n, 6);	qd = rand(n, 6);	qdd = rand(n, 6);	% test M-file	tic;	tau = rne(robot, q, qd, qdd, args{:});	t = toc;	% test MEX-file	tic;	tau_f = frne(robot, q, qd, qdd, args{:});	t_f = toc;	% print comparative results	fprintf('Speedup is %10.0f, worst case error is %f\n', ...		t/t_f, max(max(abs(tau-tau_f))));

⌨️ 快捷键说明

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