This Xcos block allows to easily convert velocity values betwen different velocity units.
This Xcos block allows to easily convert velocity values betwen different velocity units. Input port accepts any size of double vector. Output port will always have the same dimension as input. Input values are treated as the where of "Convert from" unit and are converted to output of "Convert to" unit. Any combination of distance unit divided by time unit will be accepted. For example a phrase 'km/h' can be used in 'Convert from' parameter edit box and 'm/s' can be used as 'Convert to' parameter. Supported units are: km (kilometer), m (meter), au (astronomical unit), yr (year), day (day), h (hour), mn (minute), s (second).
Input: NxM double
Output: NxM double
Convert from = km/h
Convert to = m/s
macros/VELOCITY_CONVERSION.sci
macros/AB_unit_conversion.sci