Library Math Operations Description


Download 440.16 Kb.
Sana16.04.2023
Hajmi440.16 Kb.
#1361162
Bog'liq
Compueter Modeling lecture deadline 1


Muhammad al-Xorazmiy nomidagi
Toshkent axborot texnologiyalari universiteti
KIF 214-19 guruh talabasi
Oqmirzayev Suhrobning Computer moduling fanidan
tayyorlagan mustaqil ishi

Theme: Working with Simulink package Trigonometric Function, complex to RealImag blocks.


Plan:
Trigonometric Function

Perform a trigonometric function


Library
Math Operations
Description


The Trigonometric Function block performs numerous common trigonometric functions.
You can select one of these functions from the Function list: sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, and tanh. The block output is the result of the operation of the function on the input or inputs.
The name of the function appears on the block icon. Simulink automatically draws the appropriate number of input ports. The block accepts and outputs real or complex signals of type double.
Use the Trigonometric Function block instead of the Fcn block when you want dimensionalized output, because the Fcn block can produce only scalar output.
Data Type Support
A Trigonometric Function block accepts and outputs real or complex signals of type double.
Parameters and Dialog Box


Function
The trigonometric function.
Output signal type
Type of signal (complex or real) to output.
Characteristics

Complex to Real-Imag


Output real and imaginary parts of complex input signal
expand all in page



Libraries:
Simulink / Math Operations
HDL Coder / Math Operations
Description
The Complex to Real-Imag block outputs the real and/or imaginary part of the input signal, depending on the setting of the Output parameter. The real outputs are of the same data type as the complex input. The input can be an array (vector or matrix) of complex signals, in which case the output signals are arrays of the same dimensions. The real array contains the real parts of the corresponding complex input elements. The imaginary output similarly contains the imaginary parts of the input elements.
Examples



Port_1 — Input signal
scalar | vector | matrix


Complex input signal that the block computes and outputs the real and/or imaginary part.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Output


collapse all

Port_1 — Output signal
scalar | vector | matrix


Output signal that is the real and/or imaginary part of the input signal. To choose which part is output, set the Output parameter.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Parameters



Output — Real and/or imaginary output specification
Real and imag (default) | Real | Imag


Specify if the output is the real and/or imaginary part of the input signal.

Command-Line Information


Parameter: Output

Type: character vector

Values: 'Real and imag' | 'Real' | 'Imag'

Default: 'Real and imag'

Sample time — Sample time value other than -1
-1 (default) | scalar | vector

Block Characteristics




Trigonometric Function


Specified trigonometric function on input


Description


The Trigonometric Function block performs common trigonometric functions and outputs the result in rad or rev.

Supported Functions


You can select one of these functions from the Function parameter list.



Complex sonlarning oddiy va trigonometrik funkiyalarda ishlatilish tartibi
Download 440.16 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling