Main Content

Angle Conversion

Convert from angle units to desired angle units

  • 库:
  • Aerospace Blockset / Utilities / Unit Conversions

  • Angle Conversion block

Description

TheAngle Conversionblock computes the conversion factor from specified input angle units to specified output angle units and applies the conversion factor to the input signal.

TheAngle Conversionblock port labels change based on the input and output units selected from theInitial unitand theFinal unitlists.

Ports

Input

expand all

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

Dependencies

The input port label depends on theInitial unitsetting.

Data Types:double

Output

expand all

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

Dependencies

The output port label depends on theFinal unitsetting.

Data Types:double

Parameters

expand all

Input units, specified as:

Degrees

rad

Radians

rev

Revolutions

Dependencies

The input port label depends on theInitial unitsetting.

Programmatic Use

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

Output units, specified as:

Degrees

rad

Radians

rev

Revolutions

Dependencies

The output port label depends on theFinal unitsetting.

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™.

版本历史

Introduced before R2006a