Main Content

Angle Conversion

Convert from angle units to desired angle units

  • Angle Conversion block

Libraries:
Aerospace Blockset / Utilities / Unit Conversions

Description

The Angle Conversion block computes the conversion factor from specified input angle units to specified output angle units and applies the conversion factor to the input signal.

The Angle Conversion block port labels change based on the input and output units selected from the Initial unit and the Final unit lists.

Ports

Input

expand all

Angle, specified as a scalar or array, in initial acceleration units.

Dependencies

The input port label depends on the Initial unit setting.

Data Types: double

Output

expand all

Angle, returned as a scalar, in final acceleration units.

Dependencies

The output port label depends on the Final unit setting.

Data Types: double

Parameters

expand all

Input units, specified as:

deg

Degrees

rad

Radians

rev

Revolutions

Dependencies

The input port label depends on the Initial unit setting.

Programmatic Use

Block Parameter: IU
Type: character vector
Values: 'deg' | 'rad' | 'rev'
Default: 'deg'

Output units, specified as:

deg

Degrees

rad

Radians

rev

Revolutions

Dependencies

The output port label depends on the Final unit setting.

Programmatic Use

Block Parameter: OU
Type: character vector
Values: 'deg' | 'rad' | 'rev'
Default: 'rad'

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a