This Xcos block allows to easily convert distance values betwen different distance units.
This Xcos block allows to easily convert distance values betwen different distance 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. Currently three units are supported: kilometers, meters and astronomical units. In block parameters dialog user must input 'km', 'm' or 'au' for each of them respectively.
Input: NxM double
Output: NxM double
Convert from = km
Convert to = m
macros/DISTANCE_CONVERSION.sci
macros/AB_unit_conversion.sci