BAR2DBAR Convert metric distance from centimeters to meters. Syntax: M = CM2M(CM) Description: M = CM2M(CM) converts metric readings in array CM from centimeters to meters by multiplying by 0.01. Notes: This is simply a convenience function to call the conversion with an explicit name. Examples: m = cm2m(cm) Authors: Joan Pau Beltran <joanpau.beltran@socib.cat>
0001 function m = cm2m(cm) 0002 %BAR2DBAR Convert metric distance from centimeters to meters. 0003 % 0004 % Syntax: 0005 % M = CM2M(CM) 0006 % 0007 % Description: 0008 % M = CM2M(CM) converts metric readings in array CM from centimeters to 0009 % meters by multiplying by 0.01. 0010 % 0011 % Notes: 0012 % This is simply a convenience function to call the conversion with an 0013 % explicit name. 0014 % 0015 % Examples: 0016 % m = cm2m(cm) 0017 % 0018 % Authors: 0019 % Joan Pau Beltran <joanpau.beltran@socib.cat> 0020 0021 % Copyright (C) 2014-2016 0022 % ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears 0023 % <http://www.socib.es> 0024 % 0025 % This program is free software: you can redistribute it and/or modify 0026 % it under the terms of the GNU General Public License as published by 0027 % the Free Software Foundation, either version 3 of the License, or 0028 % (at your option) any later version. 0029 % 0030 % This program is distributed in the hope that it will be useful, 0031 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0032 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0033 % GNU General Public License for more details. 0034 % 0035 % You should have received a copy of the GNU General Public License 0036 % along with this program. If not, see <http://www.gnu.org/licenses/>. 0037 0038 error(nargchk(nargin, 1, 1, 'struct')); 0039 0040 m = cm * 0.01; 0041 0042 end